Created
June 20, 2013 21:00
-
-
Save alatzl/5826602 to your computer and use it in GitHub Desktop.
Adds theme setting for enabling livereload.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_form_system_theme_settings_alter() | |
*/ | |
function drupal_theme_template_form_system_theme_settings_alter(&$form, $form_state) { | |
$form['dtt_enable_livereload'] = array( | |
'#type' => 'checkbox', | |
'#title' => t('Enable livereload'), | |
'#default_value' => theme_get_setting('dtt_enable_livereload'), | |
'#description' => t("For development use only."), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment