'90%', 'twilight_silhouette' => 0, ); // Reset to default value if the user specified setting is invalid $saved_width = $saved_settings['twilight_width']; $saved_settings['twilight_width'] = twilight_validate_page_width($saved_width); // Merge the saved variables and their default values $settings = array_merge($defaults, $saved_settings); $img_path = base_path() . path_to_theme() . "/images"; // Create the form widgets using Forms API $form['twilight_width'] = array( '#type' => 'textfield', '#title' => t('Page width'), '#default_value' => $settings['twilight_width'], '#size' => 12, '#maxlength' => 8, '#description' => t('Specify the page width in percent ratio (50-100%) for liquid layout, or in px (800-1600px) for fixed width layout. If an invalid value is specified, the default value (90%) is used instead. You can leave this field blank to use the default value. You need to add either % or px after the number.'), ); $form['twilight_silhouette'] = array( '#type' => 'select', '#title' => t('Header Silhouette'), '#default_value' => $settings['twilight_silhouette'], '#prefix' => '
' . ' City
' . ' Mountain
' . ' Western
' . ' Palm Tree
' . ' Farm
' . '
', '#options' => array( t('None'), t('City'), t('Mountain'), t('Western'), t('Palm Tree'), t('Farm'), ), '#description' => t('Select a silhouette graphic for the header area.'), ); // Return the additional form widgets return $form; } ?>