You are here

function mefibs_display_is_mefibs_enabled in MEFIBS - More exposed forms in blocks 8

Same name and namespace in other branches
  1. 7 mefibs.module \mefibs_display_is_mefibs_enabled()

Check if mefibs is enabled for the given display handler.

Parameters

object $display:

Return value

boolean

4 calls to mefibs_display_is_mefibs_enabled()
MefibsDisplayExtender::renderExposedForm in lib/Drupal/mefibs/Plugin/views/display_extender/MefibsDisplayExtender.php
Render a mefibs form.
mefibs_form_views_exposed_form_alter in ./mefibs.module
Implements hook_form_FORM_ID_alter().
mefibs_form_views_ui_config_item_form_alter in ./mefibs.module
Implements hook_form_FORM_ID_alter().
mefibs_form_views_ui_edit_display_form_alter in ./mefibs.module
Implements hook_form_FORM_ID_alter().

File

./mefibs.module, line 414
Primarily Drupal hooks and global API functions to manipulate views and to provide an additional block with an exposed filter form.

Code

function mefibs_display_is_mefibs_enabled($display) {
  if (!is_object($display) || !isset($display->extender['mefibs'])) {
    return FALSE;
  }
  return count($display->extender['mefibs']
    ->getEnabledBlocks()) > 0;
}