Projet

Général

Profil

Paste
Télécharger (1001 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / adaptivetheme / at_core / inc / forms / settings.customcss.inc @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Generate settings for the Custom CSS form.
6
 */
7
function at_core_custom_css_form(&$form) {
8

    
9
  $form['at']['custom-styles'] = array(
10
    '#type' => 'fieldset',
11
    '#title' => t('Custom CSS'),
12
    '#weight' => 30,
13
  );
14
  $form['at']['custom-styles']['custom_css'] = array(
15
    '#type' => 'textarea',
16
    '#title' => t('Custom CSS'),
17
    '#rows' => 15,
18
    '#default_value' => at_get_setting('custom_css') ? filter_xss_admin(at_get_setting('custom_css')) : '/* Add any valid CSS declarations */',
19
    '#description' => t("<p>Styles entered here are saved to <code>themename.custom.css</code>, at the path configured under \"File Management\" settings.</p><p>Direct, manual changes to <code>themename.custom.css</code> will always be overwritten by submitting this form. Consider using a sub-theme for major changes or a CSS file declared in the info file.</p><p>Note that for security reasons you cannot use the greater than symbol (>) as a child combinator selector.</p>"),
20
  );
21
}