You are here

function node_limit_delete_form in Node Limit 6

Same name and namespace in other branches
  1. 8 old/node_limit.module \node_limit_delete_form()
  2. 7 node_limit.module \node_limit_delete_form()

Confirmation form to delete a node limit.

1 string reference to 'node_limit_delete_form'
node_limit_menu in ./node_limit.module
Implementation of hook_menu().

File

./node_limit.module, line 438
Module to restrict the number of nodes a user or role may create.

Code

function node_limit_delete_form(&$form_state, $limit) {
  if ($limit == FALSE) {
    drupal_goto('admin/user/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/user/node_limit');
}