Commit 73508da6 authored by sun's avatar sun

#327152 by sun: Fixed breadcrumbs for profile configuration pages.

parent cac2b421
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#327152 by sun: Fixed breadcrumbs for profile configuration pages.
#323855 by Rob Loach, sun: Added jWYSIWYG support.
#327100 by sun: Associate editors/profiles with input formats. Major milestone.
#325980 by markus_petrux: Added Spanish/Catalan translation for Break plugin.
......
......@@ -13,25 +13,25 @@
*/
function wysiwyg_admin($arg = '', $format = '') {
switch ($arg) {
case 'add':
$breadcrumb[] = l(t('Home'), NULL);
$breadcrumb[] = l(t('Administer'), 'admin');
$breadcrumb[] = l(t('Site configuration'), 'admin/settings');
$breadcrumb[] = l(t('Wysiwyg'), 'admin/settings/wysiwyg');
$breadcrumb[] = l(t('Wysiwyg Profiles'), 'admin/settings/wysiwyg/profile');
drupal_set_breadcrumb($breadcrumb);
$profile = new stdClass;
return drupal_get_form('wysiwyg_profile_form', $profile);
case 'edit':
return drupal_get_form('wysiwyg_profile_form', wysiwyg_load_profile($format));
if ($profile = wysiwyg_load_profile($format)) {
$breadcrumb = array();
$breadcrumb[] = l(t('Home'), NULL);
$breadcrumb[] = l(t('Administer'), 'admin');
$breadcrumb[] = l(t('Site configuration'), 'admin/settings');
$breadcrumb[] = l(t('Wysiwyg profiles'), 'admin/settings/wysiwyg/profile');
drupal_set_breadcrumb($breadcrumb);
return drupal_get_form('wysiwyg_profile_form', $profile);
}
break;
case 'delete':
return drupal_get_form('wysiwyg_profile_delete_confirm', $format);
default:
case '':
return drupal_get_form('wysiwyg_profile_overview');
}
drupal_goto('admin/settings/wysiwyg/profile');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment