You are here

public function PartyActivityUIController::addPage in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_activity/party_activity.admin.inc \PartyActivityUIController::addPage()

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

File

modules/party_activity/party_activity.admin.inc, line 111
Party Activity editing UI

Class

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