You are here

function mefibs_bef_init in MEFIBS - More exposed forms in blocks 8

Implements hook_init().

File

modules/mefibs_bef/mefibs_bef.module, line 12
Primarily Drupal hooks and global API functions to add support for the Better Exposed Filters module.

Code

function mefibs_bef_init() {

  // Support for better exposed filters.
  if (isset($_REQUEST['mefibs_form']) && $_REQUEST['mefibs_form']) {
    if (isset($_REQUEST[MEFIBS_VIEW_DISPLAY_PREFIX . '-sort_bef_combine'])) {
      $_REQUEST['sort_bef_combine'] = $_REQUEST[MEFIBS_VIEW_DISPLAY_PREFIX . '-sort_bef_combine'];
      list($_REQUEST['sort_by'], $_REQUEST['sort_order']) = explode(' ', $_REQUEST['sort_bef_combine']);
    }
  }
}