Revision 7df1be04
Added by Andreas Kohlbecker almost 11 years ago
7.x/themes/zen_dataportal/theme-settings.php | ||
---|---|---|
280 | 280 |
); |
281 | 281 |
} |
282 | 282 |
|
283 |
/** |
|
284 |
* |
|
285 |
* Enter description here ... |
|
286 |
* @param $color_settings_key |
|
287 |
* |
|
288 |
*/ |
|
289 |
function zen_dataportal_form_widget_color(&$form, $color_settings_key, $description) { |
|
290 |
$label = str_replace('_', ' ', $color_settings_key); |
|
291 |
$form['zen_dataportal_colors'][$color_settings_key] = array( |
|
292 |
'#type' => 'textfield', |
|
293 |
'#title' => ucfirst(t($label)), |
|
294 |
'#default_value' => theme_get_setting($color_settings_key), |
|
295 |
'#description' => $description, //t('Set the color of the site name which is shown in the header. Must be a css color value like: #000000'), |
|
296 |
'#attributes' => array( |
|
297 |
'class' => array('color-picker'), |
|
298 |
'size' => '7', |
|
299 |
), |
|
300 |
); |
|
301 |
} |
|
302 |
|
|
283 | 303 |
/** |
284 | 304 |
* |
285 | 305 |
* Enter description here ... |
Also available in: Unified diff
restoring lost function