image_style_revert_form

function image_style_revert_form

image_style_revert_form($form, &$form_state, $style)

Confirmation form to revert a database style to its default.

File

modules/image/image.admin.inc, line 347
Administration pages for image settings.

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')
  );
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!image!image.admin.inc/function/image_style_revert_form/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部