function panopoly_widgets_form_views_exposed_form_alter in Panopoly Widgets 7
Implements hook_form_views_exposed_form_alter().
File
- ./
panopoly_widgets.module, line 799
Code
function panopoly_widgets_form_views_exposed_form_alter(&$form, &$form_state) {
$view = $form_state['view'];
// We have to do this here, as well as below in the alter hook for the
// 'views_content_views_panes_content_type_edit_form' because that doesn't
// always happen early enough.
if ($view->name == 'panopoly_widgets_general_content' && $view->current_display == 'piece_of_content') {
// This needs to happen in an #after_build so that it runs after all the
// other processing that happens on this exposed form.
$form['#after_build'][] = '_panopoly_widgets_piece_of_content_after_build';
}
}