You are here

function party_activity_page_view in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_activity/party_activity.module \party_activity_page_view()

Sets up the content to show an individual party activity

1 string reference to 'party_activity_page_view'
PartyActivityUIController::hook_menu in modules/party_activity/party_activity.admin.inc
Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu is optimized for entity type administration.

File

modules/party_activity/party_activity.module, line 285
Functions and important hooks for the party_activity module

Code

function party_activity_page_view($activity, $view_mode = 'full') {
  $controller = entity_get_controller('party_activity');
  $content = $controller
    ->view(array(
    $activity->id => $activity,
  ));
  return $content;
}