function elasticsearch_connector_set_breadcrumb in Elasticsearch Connector 8
Same name and namespace in other branches
- 7.5 elasticsearch_connector.module \elasticsearch_connector_set_breadcrumb()
- 7 elasticsearch_connector.module \elasticsearch_connector_set_breadcrumb()
- 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);
}