You are here

function popup_descriptions_form_alter in Popup 7

Same name and namespace in other branches
  1. 8 modules/popup_descriptions/popup_descriptions.module \popup_descriptions_form_alter()

Implementation of hook_form_alter to add admin css

File

modules/popup_descriptions/popup_descriptions.module, line 43

Code

function popup_descriptions_form_alter(&$form, &$form_state, $form_id) {
  $access = user_access('administer popup elements');
  $admin_links = variable_get('description-popup-admin', FALSE);
  if ($access && $admin_links) {
    drupal_add_css(drupal_get_path('module', 'popup_descriptions') . '/style/popup-descriptions.css');
  }
}