You are here

function elasticsearch_connector_set_breadcrumb in Elasticsearch Connector 8

Same name and namespace in other branches
  1. 7.5 elasticsearch_connector.module \elasticsearch_connector_set_breadcrumb()
  2. 7 elasticsearch_connector.module \elasticsearch_connector_set_breadcrumb()
  3. 7.2 elasticsearch_connector.module \elasticsearch_connector_set_breadcrumb()

Return the basic breadcrumb for the module.

Parameters

array $links:

File

./elasticsearch_connector.module, line 381
Provides hook implementations and functions accessible from other modules.

Code

function elasticsearch_connector_set_breadcrumb($links = array()) {
  $breadcrumb = array(
    l(t('Home'), '<front>'),
    l(t('Administration'), 'admin'),
    l(t('Configuration'), 'admin/config'),
    l(t('Elasticsearch'), elasticsearch_main_settings_path()),
  );
  if (!empty($links)) {
    foreach ($links as $link) {
      $breadcrumb[] = $link;
    }
  }
  drupal_set_breadcrumb($breadcrumb);
}