You are here

public function PollimUIController::addPage in Poll Improved 7

Create the markup for the add Pollim Entities page within the class so it can easily be extended/overriden.

File

./pollim.admin.inc, line 116
Pollim editing UI.

Class

PollimUIController
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('pollim_add_list', array(
    'content' => $content,
  ));
}