From: cash Date: Sat, 12 Feb 2011 17:52:18 +0000 (+0000) Subject: updated reported content to use elgg_view_form X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e4158cbf4159183b7d9362cf30c7fd5dfb1d877a;p=lorea%2Felgg.git updated reported content to use elgg_view_form git-svn-id: http://code.elgg.org/elgg/trunk@8166 36083f99-b078-4883-b0ff-0f9b5a30f544 --- diff --git a/mod/reportedcontent/actions/add.php b/mod/reportedcontent/actions/reportedcontent/add.php similarity index 100% rename from mod/reportedcontent/actions/add.php rename to mod/reportedcontent/actions/reportedcontent/add.php diff --git a/mod/reportedcontent/actions/archive.php b/mod/reportedcontent/actions/reportedcontent/archive.php similarity index 100% rename from mod/reportedcontent/actions/archive.php rename to mod/reportedcontent/actions/reportedcontent/archive.php diff --git a/mod/reportedcontent/actions/delete.php b/mod/reportedcontent/actions/reportedcontent/delete.php similarity index 100% rename from mod/reportedcontent/actions/delete.php rename to mod/reportedcontent/actions/reportedcontent/delete.php diff --git a/mod/reportedcontent/start.php b/mod/reportedcontent/start.php index e231216cd..9e5bb813a 100644 --- a/mod/reportedcontent/start.php +++ b/mod/reportedcontent/start.php @@ -36,7 +36,7 @@ function reportedcontent_init() { 'admin'); // Register actions - $action_path = elgg_get_plugins_path() . "reportedcontent/actions"; + $action_path = elgg_get_plugins_path() . "reportedcontent/actions/reportedcontent"; elgg_register_action('reportedcontent/add', "$action_path/add.php"); elgg_register_action('reportedcontent/delete', "$action_path/delete.php", 'admin'); elgg_register_action('reportedcontent/archive', "$action_path/archive.php", 'admin'); @@ -54,7 +54,7 @@ function reportedcontent_page_handler($page) { gatekeeper(); $content .= elgg_view_title(elgg_echo('reportedcontent:this')); - $content .= elgg_view('reportedcontent/form'); + $content .= elgg_view_form('reportedcontent/add'); $sidebar = elgg_echo('reportedcontent:instructions'); $params = array( diff --git a/mod/reportedcontent/views/default/forms/reportedcontent/add.php b/mod/reportedcontent/views/default/forms/reportedcontent/add.php new file mode 100644 index 000000000..abc53e750 --- /dev/null +++ b/mod/reportedcontent/views/default/forms/reportedcontent/add.php @@ -0,0 +1,57 @@ + + +
+ +
+
+ +
+
+ + 'description', + 'value' => $description, + )); + ?> +
+
+ elgg_echo('reportedcontent:report'), + )); + ?> +
diff --git a/mod/reportedcontent/views/default/reportedcontent/form.php b/mod/reportedcontent/views/default/reportedcontent/form.php deleted file mode 100644 index b520d4060..000000000 --- a/mod/reportedcontent/views/default/reportedcontent/form.php +++ /dev/null @@ -1,66 +0,0 @@ - -
- - -
- -
-
- -
-
- - 'description', - 'value' => $description, - )); - - ?> -
-
- -
-