diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-03 21:01:04 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-03 21:01:04 +0000 |
commit | ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d (patch) | |
tree | 8d9f52358a4c0118b07a03d437c7d5dfe290999c /modules/dblog | |
parent | 8c4b6239b48a46e754e23a803f4a28745b4eb027 (diff) | |
download | brdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.gz brdo-ba6ef3017eb8ac1e6ccfd1ffebf97a476859315d.tar.bz2 |
#482816 by sun and Rob Loach: Add a consistent wrapper around submit buttons.
Diffstat (limited to 'modules/dblog')
-rw-r--r-- | modules/dblog/dblog.admin.inc | 9 | ||||
-rw-r--r-- | modules/dblog/dblog.css | 7 | ||||
-rw-r--r-- | modules/dblog/dblog.module | 28 |
3 files changed, 13 insertions, 31 deletions
diff --git a/modules/dblog/dblog.admin.inc b/modules/dblog/dblog.admin.inc index 7874d0b34..37b1af247 100644 --- a/modules/dblog/dblog.admin.inc +++ b/modules/dblog/dblog.admin.inc @@ -274,7 +274,6 @@ function dblog_filter_form($form) { $form['filters'] = array( '#type' => 'fieldset', '#title' => t('Filter log messages'), - '#theme' => 'dblog_filters', '#collapsible' => TRUE, '#collapsed' => empty($session), ); @@ -291,12 +290,16 @@ function dblog_filter_form($form) { } } - $form['filters']['buttons']['submit'] = array( + $form['filters']['actions'] = array( + '#type' => 'container', + '#attributes' => array('class' => array('form-actions', 'container-inline')), + ); + $form['filters']['actions']['submit'] = array( '#type' => 'submit', '#value' => t('Filter'), ); if (!empty($_SESSION['dblog_overview_filter'])) { - $form['filters']['buttons']['reset'] = array( + $form['filters']['actions']['reset'] = array( '#type' => 'submit', '#value' => t('Reset') ); diff --git a/modules/dblog/dblog.css b/modules/dblog/dblog.css index d8a5c9b9c..343dcd13a 100644 --- a/modules/dblog/dblog.css +++ b/modules/dblog/dblog.css @@ -11,9 +11,14 @@ */ width: 15em; } -#dblog-filter-form .form-item select.form-select { +#dblog-filter-form .form-type-select select { width: 100%; } +#dblog-filter-form .form-actions { + float: left; + padding: 3ex 0 0 1em; +} + tr.dblog-user { background: #ffd; } diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module index 1d2dc015f..9d72fee38 100644 --- a/modules/dblog/dblog.module +++ b/modules/dblog/dblog.module @@ -35,17 +35,6 @@ function dblog_help($path, $arg) { } /** - * Implements hook_theme(). - */ -function dblog_theme() { - return array( - 'dblog_filters' => array( - 'render element' => 'form', - ), - ); -} - -/** * Implements hook_menu(). */ function dblog_menu() { @@ -172,21 +161,6 @@ function dblog_form_system_logging_settings_alter(&$form, $form_state) { '#options' => array(0 => t('All')) + drupal_map_assoc(array(100, 1000, 10000, 100000, 1000000)), '#description' => t('The maximum number of entries to keep in the database log. Requires a <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status'))) ); - $form['buttons']['#weight'] = 1; + $form['actions']['#weight'] = 1; } -/** - * Theme dblog administration filter selector. - * - * @ingroup themeable - */ -function theme_dblog_filters($variables) { - $form = $variables['form']; - $output = ''; - - foreach (element_children($form['status']) as $key) { - $output .= drupal_render($form['status'][$key]); - } - $output .= '<div id="dblog-admin-buttons">' . drupal_render($form['buttons']) . '</div>'; - return $output; -} |