getViewtypes(); $viewtype = get_input('type', 'default'); if (!in_array($viewtype, $viewtypes)) { forward('admin', '404'); } $data = $inspector->getViews($viewtype); $page = elgg_view($view_name, array( "data" => $data, "viewtypes" => $viewtypes, "viewtype" => $viewtype, )); break; default: $data = $inspector->$method(); $page = elgg_view($view_name, array( "data" => $data, )); break; } echo '

' . elgg_echo('developers:inspect:help') . '

'; echo $page;