You are here

function mefibs_display_extender_plugin_blocks::get_block_options in MEFIBS - More exposed forms in blocks 7

File

./mefibs_display_extender_plugin_blocks.inc, line 32
Provides an MEFIBS exposed form plugin for View 3.x.

Class

mefibs_display_extender_plugin_blocks
Display Extender Plugin class.

Code

function get_block_options($machine_name) {
  $settings = $this->display
    ->get_option('mefibs');
  if (!isset($settings['blocks'])) {
    return array();
  }
  foreach ($settings['blocks'] as $block) {
    if ($block['machine_name'] == $machine_name) {
      $block_settings = $block + array(
        'submit_button' => t('Submit'),
        'reset_button' => FALSE,
        'reset_button_label' => t('Reset'),
        'autosubmit' => FALSE,
        'autosubmit_hide' => FALSE,
      );
      return $block_settings;
    }
  }
}