public function EntityformUIController::addPage in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.admin.inc \EntityformUIController::addPage()
Create the markup for the add Entityform Entities page within the class so it can easily be extended/overriden.
File
- ./
entityform.admin.inc, line 140 - Entityform editing UI.
Class
- EntityformUIController
- 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('entityform_add_list', array(
'content' => $content,
));
}