Skip to content
Snippets Groups Projects
Commit 900baf32 authored by couzinhub's avatar couzinhub
Browse files

updates for code slush

parent 44c628a2
No related branches found
Tags 7.x-1.0-rc3
No related merge requests found
......@@ -108,6 +108,30 @@ abbr {
color:#666;
}
/* Messages */
div.messages {
padding: 9px;
margin: 1em 0;
color: #036;
background: #bdf;
border: 1px solid #ace;
}
div.warning {
color: #840;
background: #fe6;
border-color: #ed5;
}
div.error {
color: #fff;
background: #e63;
border-color: #d52;
}
div.status {
color: #360;
background: #cf8;
border-color: #be7;
}
/** Region Colors
---------------------------------
......
<?php
// Implementation of THEMEHOOK_settings() function.
// @param $saved_settings
// array An array of saved settings for this theme.
// @return
// array A form array.
function phptemplate_settings($saved_settings) {
// The default values for the theme variables. Make sure $defaults exactly
// matches the $defaults in the template.php file.
$defaults = array(
'zen_tabs' => 1,
'wireframe_mode' => 0,
'block_editing' => 0,
'clear_registry' => 0,
);
// Merge the saved variables and their default values
$settings = array_merge($defaults, $saved_settings);
// Form override fo theme settings
function basic_form_system_theme_settings_alter(&$form, $form_state) {
$form['options_settings'] = array(
'#type' => 'fieldset',
......@@ -32,7 +12,6 @@ function phptemplate_settings($saved_settings) {
'#type' => 'checkbox',
'#title' => t('Use the ZEN tabs'),
'#description' => t('Check this if you wish to replace the default tabs by the ZEN tabs'),
'#default_value' => $settings['zen_tabs']
);
$form['dev_settings'] = array(
......@@ -45,21 +24,16 @@ function phptemplate_settings($saved_settings) {
'#type' => 'checkbox',
'#title' => t('Wireframe Mode - Display borders around main layout elements'),
'#description' => t('<a href="!link">Wireframes</a> are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')),
'#default_value' => $settings['wireframe_mode']
);
$form['dev_settings']['block_editing'] = array(
'#type' => 'checkbox',
'#title' => t('Show block editing on hover'),
'#description' => t('When hovering over a block, privileged users will see block editing links. <strong>You might need to rebuild the theme registry after activating this option.</strong>'),
'#default_value' => $settings['block_editing']
);
$form['dev_settings']['clear_registry'] = array(
'#type' => 'checkbox',
'#title' => t('Rebuild theme registry on every page.'),
'#description' =>t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'http://drupal.org/node/173880#theme-registry')),
'#default_value' => $settings['clear_registry']
);
// Return the additional form widgets
return $form;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment