function embed_views_form_views_exposed_form_alter in Embed Views Display 7.2
Same name and namespace in other branches
- 6 embed_views.module \embed_views_form_views_exposed_form_alter()
- 7 embed_views.module \embed_views_form_views_exposed_form_alter()
Implementation of hook_form_FORM_ID_alter().
File
- ./
embed_views.module, line 41 - Integration with the views module to create the new embed views display.
Code
function embed_views_form_views_exposed_form_alter(&$form, &$form_state) {
// Change the action of the form for all embed views.
if ($form_state['display']->display_plugin == 'embed') {
$form['#action'] = url(drupal_get_path_alias($_GET['q']));
}
}