You are here

function elasticsearch_connector_page_alter in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 8.7 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  2. 8 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  3. 8.2 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  4. 8.5 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  5. 8.6 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  6. 7.5 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  7. 7.2 elasticsearch_connector.module \elasticsearch_connector_page_alter()

Implements hook_page_alter().

File

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

Code

function elasticsearch_connector_page_alter(&$page) {
  if (elasticsearch_connector_in_dialog()) {
    unset($page['page_top']);
    unset($page['page_bottom']);
    $page['#theme'] = 'elasticsearch_connector_page';
  }
}