');
}
// Get the breadcrumbs that zen generates
$output = zen_breadcrumb($breadcrumb);
if (!empty($output)) {
$start_html = '';
if (theme_get_setting('osu_breadcrumb_prefix') != '') {
$output = str_replace($start_html, '', $output); // workaround since zend returns a pre-formatted set of links within a div
$output = $start_html.theme_get_setting('osu_breadcrumb_prefix')." $output";
}
return $output;
}
}
/**
* The hook below is used to remove entries from the
* list of themes in admin/build/themes.
* For more info on this fix see:
* [1] http://drupal.org/node/223463
* [2] http://www.lullabot.com/articles/modifying-forms-5-and-6
*
* First added by Jose Cedeno
*
* Modified - 2/11/2011 - PL
* disable all base themes
* disable older themes
* disable default Drupal themes
*
* Note: This doesn't actually disable anything. It just
* hides them from the theme selection UI. If a site is using one of the
* hidden themes, it will still work. However if they switch to this
* theme, they will then have no way of switching back to their old theme.
*/
function osu_drupal_1_11_system_themes_form($form) {
// Build array of themes we want to disable
// could be read in from a config file or database table
$disabled_themes = array(
'osu_drupal', 'osu_drupal_1_9','osu_drupal_1_10', 'osu_drupal_1_11',
'osu_drupal_linen', 'osu_drupal_lite', 'osu_grey', 'osu_orange',
'garland', 'minnelli', 'zen' );
// repeat the line below to remove themes from the list
foreach($disabled_themes as $theme_to_disable) {
$form = osu_drupal_1_11_remove_theme($theme_to_disable, $form);
}
return theme_system_themes_form($form);
}
/**
* This method removes a theme from the list of themes in
* the system themes form $form array.
*
* @param string $theme_name The theme that you want to remove
* @param array $form The $form array
* @return array $form
*/
function osu_drupal_1_11_remove_theme($theme_name, $form) {
unset($form[$theme_name]);
unset($form['status']['#options'][$theme_name]);
unset($form['status'][$theme_name]);
unset($form['theme_default']['#options'][$theme_name]);
unset($form['theme_default'][$theme_name]);
return $form;
}