function icon_bundle_reset_form in Icon API 8
Same name and namespace in other branches
- 7 includes/admin.inc \icon_bundle_reset_form()
Menu callback for 'icon_bundle_reset_form'.
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'));
}