function party_activity_page_view in Party 8.2
Same name and namespace in other branches
- 7 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 251 - 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->party_activity_id => $activity,
));
return $content;
}