function popup_descriptions_form_alter in Popup 8
Same name and namespace in other branches
- 7 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');
}
}