On this page
function dblog_clear_log_form
dblog_clear_log_form($form)
Form constructor for the form that clears out the log.
See also
Related topics
File
- modules/dblog/dblog.admin.inc, line 394
- Administrative page callbacks for the Database Logging module.
Code
function dblog_clear_log_form($form) {
$form['dblog_clear'] = array(
'#type' => 'fieldset',
'#title' => t('Clear log messages'),
'#description' => t('This will permanently remove the log messages from the database.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['dblog_clear']['clear'] = array(
'#type' => 'submit',
'#value' => t('Clear log messages'),
'#submit' => array('dblog_clear_log_submit'),
);
return $form;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dblog!dblog.admin.inc/function/dblog_clear_log_form/7.x