From e9f261e51adcaa80429fe14b04ee277ab3124ce9 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 6 Aug 2009 14:17:37 +0000 Subject: removed all main plugins from core - they now live in the plugins svn git-svn-id: https://code.elgg.org/elgg/trunk@3422 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/reportedcontent/actions/add.php | 49 ------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 mod/reportedcontent/actions/add.php (limited to 'mod/reportedcontent/actions/add.php') diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/add.php deleted file mode 100644 index de1c1d3db..000000000 --- a/mod/reportedcontent/actions/add.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @copyright Curverider Ltd 2008-2009 - * @link http://elgg.org/ - */ - - $title = get_input('title'); - $description = get_input('description'); - $address = get_input('address'); - $access = ACCESS_PRIVATE; //this is private and only admins can see it - - if ($title && $address) { - - $entity = new ElggObject; - $entity->subtype = "reported_content"; - $entity->owner_guid = $_SESSION['user']->getGUID(); - $entity->title = $title; - $entity->address = $address; - $entity->description = $description; - $entity->access_id = $access; - - if ($entity->save()) { - if (!trigger_plugin_hook('reportedcontent:add', $reported->type, array('entity'=>$reported), true)) { - $entity->delete(); - register_error(elgg_echo('reportedcontent:failed')); - } else { - system_message(elgg_echo('reportedcontent:success')); - $entity->state = "active"; - } - forward($address); - } else { - register_error(elgg_echo('reportedcontent:failed')); - forward($address); - } - - } else { - - register_error(elgg_echo('reportedcontent:failed')); - forward($address); - - } - -?> \ No newline at end of file -- cgit v1.2.3