1 dblog.admin.inc dblog_clear_log_form($form)

Form constructor for the form that clears out the log.

See also

dblog_clear_log_submit()

Related topics

File

core/modules/dblog/dblog.admin.inc, line 418
Admin page callbacks for the Database Logging module.

Code

function dblog_clear_log_form($form) {
  $form['dblog_clear']['help'] = array(
    '#type' => 'help',
    '#markup' => t('This action will permanently delete the log messages from the database.'),
  );
  $form['dblog_clear']['clear'] = array(
    '#type' => 'submit',
    '#value' => t('Clear log messages'),
    '#submit' => array('dblog_clear_log_submit'),
    '#attributes' => array('class' => array('button-danger')),
  );

  return $form;
}