You are here

function party_activity_page_title in Party 7

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

Menu title callback for activity pages

1 string reference to 'party_activity_page_title'
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 273
Functions and important hooks for the party_activity module

Code

function party_activity_page_title(PartyActivity $activity, $action = NULL) {
  $title = '';
  if ($action == 'edit') {
    $title = 'Edit Activity: ';
  }
  return $title . $activity->title;
}