function node_limit_delete_form in Node Limit 7
Same name and namespace in other branches
- 8 old/node_limit.module \node_limit_delete_form()
- 6 node_limit.module \node_limit_delete_form()
Implements hook_form(). Confirmation form to delete a node limit.
1 string reference to 'node_limit_delete_form'
- node_limit_menu in ./
node_limit.module - Implements hook_menu().
File
- ./
node_limit.module, line 601
Code
function node_limit_delete_form($form, &$form_state, $limit) {
if ($limit == FALSE) {
drupal_goto('admin/structure/node_limit');
}
$form = array(
'lid' => array(
'#type' => 'hidden',
'#value' => $limit['lid'],
),
);
return confirm_form($form, t('Are you sure you want to delete %name?', array(
'%name' => $limit['title'],
)), 'admin/structure/node_limit');
}