You are here

function elasticsearch_connector_page_alter in Elasticsearch Connector 8.2

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.5 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  4. 8.6 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  5. 7.5 elasticsearch_connector.module \elasticsearch_connector_page_alter()
  6. 7 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 299
Provides hook implementations and functions accessible from other modules.

Code

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