You are here

function og_ui_menu_title_callback in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og_ui/og_ui.module \og_ui_menu_title_callback()

Menu callback; Return the title of a menu item based on the group title.

1 string reference to 'og_ui_menu_title_callback'
og_ui_menu in og_ui/og_ui.module
Implements hook_menu().

File

og_ui/og_ui.module, line 206
Organic groups UI.

Code

function og_ui_menu_title_callback($title, $entity_type, $etid) {
  $group = og_get_group($entity_type, $etid);
  $label = og_label($group->gid);
  return str_replace('@group', $label, $title);
}