pluginspath}reportedcontent/actions"; 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'); } /** * Reported content page handler * * Serves the add report page * * @param array $page Array of page routing elements */ function reportedcontent_page_handler($page) { // only logged in users can report things gatekeeper(); $content .= elgg_view_title(elgg_echo('reportedcontent:this')); $content .= elgg_view('reportedcontent/form'); $sidebar .= elgg_echo('reportedcontent:instructions'); $params = array( 'content' => $content, 'sidebar' => $sidebar ); $body = elgg_view_layout('one_column_with_sidebar', $params); echo elgg_view_page(elgg_echo('reportedcontent:this'), $body); }