You are here

function elasticsearch_connector_set_breadcrumb in Elasticsearch Connector 7.2

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

Return the basic breadcrumb for the connector module.

Parameters

array $links:

2 calls to elasticsearch_connector_set_breadcrumb()
elasticsearch_connector_edit_cluster in ./elasticsearch_connector.admin.inc
Add/edit Elasticsearch clusters.
elasticsearch_connector_info_cluster in ./elasticsearch_connector.admin.inc

File

./elasticsearch_connector.module, line 568
This module provide an interface to connecting to the elasticsearch cluster and implementing the official Elasticsearch library.

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 connector'), elasticsearch_connector_main_settings_path()),
  );
  if (!empty($links)) {
    foreach ($links as $link) {
      $breadcrumb[] = $link;
    }
  }
  drupal_set_breadcrumb($breadcrumb);
}