system_actions_delete_form

function system_actions_delete_form

system_actions_delete_form($form, &$form_state, $action)

Create the form for confirmation of deleting an action.

See also

system_actions_delete_form_submit()

Related topics

File

modules/system/system.admin.inc, line 3188
Admin page callbacks for the system module.

Code

function system_actions_delete_form($form, &$form_state, $action) {
  $form['aid'] = array(
    '#type' => 'hidden',
    '#value' => $action->aid,
  );
  return confirm_form($form, 
  t('Are you sure you want to delete the action %action?', array('%action' => $action->label)), 
  'admin/config/system/actions/manage', 
  t('This cannot be undone.'), 
  t('Delete'), 
  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!system!system.admin.inc/function/system_actions_delete_form/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部