You are here

function path_breadcrumbs_edit_page_title in Path Breadcrumbs 7

Returns correct title for actions page.

1 string reference to 'path_breadcrumbs_edit_page_title'
path_breadcrumbs_menu in ./path_breadcrumbs.module
Implements hook_menu().

File

./path_breadcrumbs.module, line 108

Code

function path_breadcrumbs_edit_page_title($path_breadcrumbs, $action = NULL) {
  $replacement = array(
    '!name' => $path_breadcrumbs->name,
  );
  if ($action == 'edit') {
    return t('Edit !name', $replacement);
  }
  elseif ($action == 'delete') {
    return t('Delete !name', $replacement);
  }
  return t('!name', $replacement);
}