/[drupal]/contributions/themes/andreas00/theme-settings.php
ViewVC logotype

Contents of /contributions/themes/andreas00/theme-settings.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sun Apr 13 14:47:05 2008 UTC (19 months, 2 weeks ago) by danielskeenan
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Made header image configurable
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 ?>

  ViewVC Help
Powered by ViewVC 1.1.2