You are here

function fpa_form_user_admin_perm_alter in Fast Permissions Administration 6.2

File

./fpa.module, line 90

Code

function fpa_form_user_admin_perm_alter(&$form, &$form_state) {
  if ($_GET['fpa_method'] == 'modalframe') {
    modalframe_child_js();
    $form['#submit'][] = '_fpa_modalframe_submit';
  }
  $fpa_module_path = drupal_get_path('module', 'fpa');
  drupal_add_css($fpa_module_path . '/css/fpa.css', 'module');
  drupal_add_js($fpa_module_path . '/js/fpa.js', 'module');
  drupal_add_js(array(
    'fpa' => array(
      'perm' => $_GET['fpa_perm'] ? $_GET['fpa_perm'] : '',
    ),
  ), 'setting');
}