You are here

function comment_delete_settings_form in Comment Delete 6

Same name and namespace in other branches
  1. 7 comment_delete.admin.inc \comment_delete_settings_form()

Settings for comment deletion.

1 string reference to 'comment_delete_settings_form'
comment_delete_menu in ./comment_delete.module
Implementation of hook_menu().

File

./comment_delete.admin.inc, line 6

Code

function comment_delete_settings_form() {
  $form['comment_delete_replies'] = array(
    '#type' => 'select',
    '#title' => t('Default action for replies'),
    '#description' => t('Specify how replies should be handled by default when deleting a comment.'),
    '#options' => array(
      0 => t('Delete all replies of the comment'),
      1 => t('Move all replies up one level'),
      2 => t('Delete only the comment, or it\'s text and the subject if it has replies'),
    ),
    '#required' => TRUE,
    '#default_value' => variable_get('comment_delete_replies', 0),
  );
  $form['comment_delete_clock'] = array(
    '#type' => 'textfield',
    '#title' => t('Deletion clock'),
    '#description' => t('Enter a time in seconds that a user can delete a comment after it\'s creation.'),
    '#size' => 10,
    '#default_value' => variable_get('comment_delete_clock', 0),
  );
  return system_settings_form($form);
}