function dblog_clear_log_form

Form constructor for the form that clears out the log.

See also

dblog_clear_log_submit()

Related topics

1 string reference to 'dblog_clear_log_form'
DbLogController::overview in drupal/core/modules/dblog/lib/Drupal/dblog/Controller/DbLogController.php
Displays a listing of database log messages.

File

drupal/core/modules/dblog/dblog.admin.inc, line 305
Administrative page callbacks for the Database Logging module.

Code

function dblog_clear_log_form($form) {
  $form['dblog_clear'] = array(
    '#type' => 'details',
    '#title' => t('Clear log messages'),
    '#description' => t('This will permanently remove the log messages from the database.'),
    '#collapsed' => TRUE,
  );
  $form['dblog_clear']['clear'] = array(
    '#type' => 'submit',
    '#value' => t('Clear log messages'),
    '#submit' => array(
      'dblog_clear_log_submit',
    ),
  );
  return $form;
}