function icon_bundle_reset_form in Icon API 7
Same name and namespace in other branches
- 8 includes/admin.inc \icon_bundle_reset_form()
Menu callback for 'icon_bundle_reset_form'.
1 string reference to 'icon_bundle_reset_form'
- icon_menu in ./
icon.module - Implements hook_menu().
File
Code
function icon_bundle_reset_form($form, $form_state, $bundle) {
if (empty($bundle['overridden'])) {
drupal_set_message(t('The icon bundle %bundle is not currently overridden in the database.', array(
'%bundle' => $bundle['title'],
)), 'error');
drupal_goto(ICON_ADMIN_PATH);
}
return confirm_form($form, t('Reset %bundle icon bundle?', array(
'%bundle' => $bundle['title'],
)), ICON_ADMIN_PATH, NULL, t('Reset'));
}