function wysiwyg_admin in Wysiwyg 6
Same name and namespace in other branches
- 5 wysiwyg.module \wysiwyg_admin()
Callback handler for admin pages; menu callback.
@todo Move into hook_menu(), resp. FAPI functions.
1 string reference to 'wysiwyg_admin'
- wysiwyg_menu in ./
wysiwyg.module - Implementation of hook_menu().
File
- ./
wysiwyg.admin.inc, line 13 - Integrate Wysiwyg editors into Drupal.
Code
function wysiwyg_admin($arg = '', $format = '') {
switch ($arg) {
case 'edit':
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);
case '':
return drupal_get_form('wysiwyg_profile_overview');
}
drupal_goto('admin/settings/wysiwyg/profile');
}