You are here

function popups_form_alter in Popups API (Ajax Dialogs) 7

Same name and namespace in other branches
  1. 5 popups.module \popups_form_alter()
  2. 6.2 popups.module \popups_form_alter()
  3. 6 popups.module \popups_form_alter()

hook_form_alter

Look at the form_id and see if popup behavior has been requested for any links in this form.

Parameters

form_array $form:

array $form_state:

str $form_id: :

File

./popups.module, line 134
popup.module

Code

function popups_form_alter(&$form, $form_state, $form_id) {

  //  print $form_id;
  // Add popup behavior to the form if requested.
  $popups = popups_get_popups();
  if (isset($popups[$form_id])) {
    popups_add_popups($popups[$form_id]);
  }
}