public function ConfigPagesUIController::addPage in Config Pages 7
Create the markup for the add ConfigPages Entities page within the class so it can easily be extended/overriden.
File
- ./
config_pages.admin.inc, line 59 - ConfigPages editing UI.
Class
- ConfigPagesUIController
- UI controller.
Code
public function addPage() {
$item = menu_get_item();
$content = system_admin_menu_block($item);
if (count($content) == 1) {
$item = array_shift($content);
drupal_goto($item['href']);
}
return theme('config_pages_add_list', array(
'content' => $content,
));
}