Hi there.... i have an better exposed filter where I did a hook form alter to add a checkbox....

How do I add the display options into that hook?

I need this in the rendered view for my checkbox

$handler->display->display_options['exposed_form']['options']['bef'] = array(
  'general' => array(
    'allow_secondary' => 1,
    'secondary_label' => 'Advanced options',
  ),

My hook looks like this so far

if ($form_id == 'views_exposed_form' && $form_state['view']->name == 'booking_jobs') {

   $form['field_artist_replied_target_id'] = array(
      '#type' => 'checkbox',
      '#title' => t('field_artist_replied_target_id'),
	  '#default_value' => NULL,
	  '#return_value' => $_SESSION['artist_title_nid']
    ); 
  }	
}

Comments

Neslee Canil Pinto’s picture

Status: Active » Closed (won't fix)

Hi, there will be no more future development for 7.x branch. If you see this issue in 8.x, feel free to file an issue. Closing this as Closed(wont fix).