You are here

function global_filter_form_alter in Views Global Filter 8

Same name and namespace in other branches
  1. 7 global_filter.module \global_filter_form_alter()

Implements hook_form_alter().

For core, Profile2 and Profile2 Pages modules.

File

./global_filter.module, line 227
global_filter.module

Code

function global_filter_form_alter(&$form, &$form_state, $form_id) {
  if ($form_id == 'user_profile_form' || strpos($form_id, 'profile2_edit_') === 0) {
    if (global_filter_get_module_parameter('set_from_profile_on_submit', FALSE)) {

      // Append our own submit handler in addition to user_profile_form_submit()
      // or profile2_form_submit_handler() and profile2_form_submit()
      $form['#submit'][] = 'global_filter_user_profile_form_submit';
    }
  }
}