function image_style_revert_form

Confirmation form to revert a database style to its default.

1 string reference to 'image_style_revert_form'
image_menu in modules/image/image.module
Implements hook_menu().

File

modules/image/image.admin.inc, line 360

Code

function image_style_revert_form($form, &$form_state, $style) {
    $form_state['image_style'] = $style;
    return confirm_form($form, t('Revert the %style style?', array(
        '%style' => $style['label'],
    )), 'admin/config/media/image-styles', t('Reverting this style will delete the customized settings and restore the defaults provided by the @module module.', array(
        '@module' => $style['module'],
    )), t('Revert'), t('Cancel'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.