| 1 |
<?php
|
| 2 |
// $Id: $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of THEMEHOOK_settings() function.
|
| 6 |
*
|
| 7 |
* @param $saved_settings
|
| 8 |
* array An array of saved settings for this theme.
|
| 9 |
* @return
|
| 10 |
* array A form array.
|
| 11 |
*/
|
| 12 |
function phptemplate_settings($saved_settings) {
|
| 13 |
/*
|
| 14 |
* The default values for the theme variables. Make sure $defaults exactly
|
| 15 |
* matches the $defaults in the template.php file.
|
| 16 |
*/
|
| 17 |
$defaults = array(
|
| 18 |
'andreas00_primary_links_display_loc' => 'sidebar',
|
| 19 |
);
|
| 20 |
|
| 21 |
// Merge the saved variables and their default values
|
| 22 |
$settings = array_merge($defaults, $saved_settings);
|
| 23 |
|
| 24 |
// Create the form widgets using Forms API
|
| 25 |
$form['andreas00_primary_links_display_loc'] = array(
|
| 26 |
'#type' => 'radios',
|
| 27 |
'#title' => t('Location of Primary Links'),
|
| 28 |
'#options' => array(
|
| 29 |
'tabs' => t('Psudo-tabs below the header graphic'),
|
| 30 |
'left' => t('List on the left sidebar'),
|
| 31 |
'right' => t('List on the right Sidebar'),
|
| 32 |
),
|
| 33 |
'#default_value' => $settings['andreas00_primary_links_display_loc'],
|
| 34 |
);
|
| 35 |
|
| 36 |
// Return the additional form widgets
|
| 37 |
return $form;
|
| 38 |
}
|
| 39 |
?>
|