'' // removing #div-zen-breadcrumb
);
$form['breadcrumb']['osu_breadcrumb_first'] = array(
'#title' => t('Text in First Breadcrumb'),
'#type' => 'textfield',
'#default_value' => $settings['osu_breadcrumb_first'],
'#description' => 'Enter the text or name to use for the first breadcrumb',
'#size' => '40',
'#maxlength' => '500'
);
$form['breadcrumb']['osu_breadcrumb_prefix'] = array(
'#title' => t('Breadcrumb Prefix Text'),
'#type' => 'textfield',
'#default_value' => $settings['osu_breadcrumb_prefix'],
'#description' => 'Enter the text or html to display before the breadcrumbs',
'#suffix' => '', // #div-zen-breadcrumb
'#size' => '40',
'#maxlength' => '500'
);
$form['osu_start_fieldset_0'] = array(
'#value' => '
Rotating Header Image Directory '
);
$form['osu_rotating_header_custom_location'] = array(
'#title' => 'Use a custom rotating header location?',
'#type' => 'checkbox',
'#default_value' => $settings['osu_rotating_header_custom_location']
);
$form['osu_rotating_header_directory'] = array(
'#title' => t('Rotating header images directory'),
'#type' => 'textfield',
'#default_value' => $settings['osu_rotating_header_directory'],
'#description' => 'Enter the path to your rotating header images (relative to sites/default/files/)'
);
$form['osu_end_fieldset_0'] = array(
'#value' => ' '
);
//rotating-image settings:
$form['osu_start_fieldset_1'] = array(
'#value' => 'Front Page Header Image '
);
$themes = list_themes();
$info_rotating_header_types = $themes['osu_drupal_1_11']->info['osu_rotating_header_types'];
//var_dump($info_rotating_header_types);
//set up the array for select box values
if (!empty($info_rotating_header_types)) {
$i = 0;
foreach ($info_rotating_header_types as $rotating_header_type) {
$rotating_header_types[$i++] = t($rotating_header_type);
}
}
$form['osu_rotating_header_type'] = array(
'#title' => t('Rotating Header Type'),
'#type' => 'select',
'#description' => t('Select the way you wish your header images to rotate'),
'#default_value' => $settings['osu_rotating_header_type'],
'#options' => $rotating_header_types
);
//input for rotating interval
$form['osu_rotating_header_interval'] = array(
'#title' => t('Rotating Header Interval'),
'#type' => 'textfield',
'#size' => '3',
'#default_value' => $settings['osu_rotating_header_interval'],
'#description' => 'Enter the time in seconds between each transition'
);
//select for 'single image' rotation type
$available_images = glob($osu_rotating_header_path['abs'].'*');
//set up the array for select box values
if (!empty($available_images)) {
foreach($available_images as $available_image) {
$rotating_images[t(basename($available_image))] = t(basename($available_image));
}
} else {
$rotating_images = array();
}
$form['osu_rotating_header_single_image'] = array(
'#title' => t('Select header image'),
'#type' => 'select',
'#description' => 'Select the image you want to appear in the header',
'#default_value' => $settings['osu_rotating_header_single_image'],
'#options' => $rotating_images
);
//header image preview:
$form['osu_rotating_header_image_preview'] = array(
'#value' => ''
);
$form['osu_end_fieldset_1'] = array(
'#value' => ' '
);
//Secondary Page headers, reuses form elements for front pages and sets sepear
$form['osu_start_fieldset_2'] = array(
'#value' => 'Secondary Page Header Image '
);
$info_second_header_types = $themes['osu_drupal_1_11']->info['osu_second_header_types'];
$form['osu_second_header_type'] = array(
'#title' => t('Secondary Page Header Type'),
'#type' => 'select',
'#description' => t('Choose either a short header or a taller header with graphics'),
'#default_value' => $settings['osu_second_header_type'],
'#options' => $info_second_header_types
);
$form['osu_second_rotating_header_type'] = $form['osu_rotating_header_type'];
$form['osu_second_rotating_header_type']['#default_value'] = $settings['osu_second_rotating_header_type'];
//input for rotating interval
$form['osu_second_rotating_header_interval'] = $form['osu_rotating_header_interval'];
$form['osu_second_rotating_header_interval']['#default_value'] = $settings['osu_second_rotating_header_interval'];
$form['osu_second_rotating_header_single_image'] = $form['osu_rotating_header_single_image'];
$form['osu_second_rotating_header_single_image']['#default_value'] = $settings['osu_second_rotating_header_single_image'];
//header image preview:
$form['osu_second_rotating_header_image_preview'] = array(
'#value' => ''
);
$form['osu_end_fieldset_2'] = array(
'#value' => ' '
);
// Remove some of the base theme's settings.
unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.
// Return the form
return $form;
}