You are here

function custom_breadcrumbs_identifiers_cb_identifier_list in Custom Breadcrumbs 7.2

Same name and namespace in other branches
  1. 6.2 custom_breadcrumbs_identifiers/custom_breadcrumbs_identifiers.module \custom_breadcrumbs_identifiers_cb_identifier_list()

Implements hook_cb_identifier_list().

@codingStandardsIgnoreStart

@codingStandardsIgnoreEnd

Return value

An array of text strings describing special identifier behavoir.

File

custom_breadcrumbs_identifiers/custom_breadcrumbs_identifiers.module, line 16
Provide special identifiers for use with custom breadcrumbs.

Code

function custom_breadcrumbs_identifiers_cb_identifier_list() {
  $identifiers = array();
  $identifiers['<none>'] = t('Produces a plain text crumb. This identifier should not be used with the pipe (|) symbol.');
  if (module_exists('pathauto')) {
    $identifiers['<pathauto>'] = t('Cleans the given path using your pathauto replacement rules.');
  }

  // Additional identifiers can be added here.
  $identifiers['<book-hierarchy>'] = t('Provides crumbs for each parent node of a book page. Whatever is placed in the corresponding position of the title area will be ignored. It should not be used with the pipe (|) symbol.');
  $identifiers['<page-title>'] = t('Provides a plain text crumb using the page title. Whatever is placed in the corresponding position of the title area will be ignored. It should not be used with the pipe (|) symbol.');
  $identifiers['<menu-parent-trail>'] = t('Produces crumbs for each parent item for the given path. The title information for this line will be ignored because the menu link titles are used. If a path is not provided following the pipe (|) symbol, the current path with be used.');
  return $identifiers;
}