summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/page.tpl.php4
-rw-r--r--modules/system/system.admin.inc28
-rw-r--r--modules/system/system.module6
3 files changed, 19 insertions, 19 deletions
diff --git a/modules/system/page.tpl.php b/modules/system/page.tpl.php
index ef8cfdf4a..39127200e 100644
--- a/modules/system/page.tpl.php
+++ b/modules/system/page.tpl.php
@@ -154,7 +154,7 @@
<?php if ($main_menu): ?>
<div id="navigation"><div class="section">
- <?php print theme('links', $main_menu, array('text' => t('Main menu'), 'level' => 'h2'), array('id' => 'main-menu', 'class' => 'links clearfix')); ?>
+ <?php print theme('links', $main_menu, array('text' => t('Main menu'), 'level' => 'h2'), array('id' => 'main-menu', 'class' => array('links clearfix'))); ?>
</div></div> <!-- /.section, /#navigation -->
<?php endif; ?>
@@ -192,7 +192,7 @@
</div></div> <!-- /#main, /#main-wrapper -->
<div id="footer"><div class="section">
- <?php print theme('links', $secondary_menu, array('text' => t('Secondary menu'), 'level' => 'h2'), array('id' => 'secondary-menu', 'class' => 'links clearfix')); ?>
+ <?php print theme('links', $secondary_menu, array('text' => t('Secondary menu'), 'level' => 'h2'), array('id' => 'secondary-menu', 'class' => array('links', 'clearfix'))); ?>
<?php if ($footer): ?><div id="footer-region" class="region"><?php print $footer; ?></div><?php endif; ?>
</div></div> <!-- /.section, /#footer -->
diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc
index 8b9a5dd7a..88c8f2f70 100644
--- a/modules/system/system.admin.inc
+++ b/modules/system/system.admin.inc
@@ -223,7 +223,7 @@ function system_themes_form() {
break;
}
}
- $screenshot = $screenshot ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $theme->info['name'])), '', array('class' => 'screenshot'), FALSE) : t('no screenshot');
+ $screenshot = $screenshot ? theme('image', $screenshot, t('Screenshot for %theme theme', array('%theme' => $theme->info['name'])), '', array('class' => array('screenshot')), FALSE) : t('no screenshot');
$form[$theme->name]['screenshot'] = array('#markup' => $screenshot);
$form[$theme->name]['info'] = array(
@@ -479,7 +479,7 @@ function system_theme_settings(&$form_state, $key = '') {
'#type' => 'fieldset',
'#title' => t('Logo image settings'),
'#description' => t('If toggled on, the following logo will be displayed.'),
- '#attributes' => array('class' => 'theme-settings-bottom'),
+ '#attributes' => array('class' => array('theme-settings-bottom')),
);
$form['logo']['default_logo'] = array(
'#type' => 'checkbox',
@@ -720,7 +720,7 @@ function system_modules($form_state = array()) {
'#collapsible' => TRUE,
'#theme' => 'system_modules_fieldset',
'#header' => array(
- array('data' => t('Enabled'), 'class' => 'checkbox'),
+ array('data' => t('Enabled'), 'class' => array('checkbox')),
t('Name'),
t('Version'),
t('Description'),
@@ -1625,7 +1625,7 @@ function system_regional_settings() {
'#title' => t('Default country'),
'#default_value' => variable_get('site_default_country', ''),
'#options' => $countries,
- '#attributes' => array('class' => 'country-detect'),
+ '#attributes' => array('class' => array('country-detect')),
);
$form['locale']['date_first_day'] = array(
@@ -1690,7 +1690,7 @@ function system_regional_settings() {
'#suffix' => '</div>',
'#type' => 'select',
'#title' => t('Short date format'),
- '#attributes' => array('class' => 'date-format'),
+ '#attributes' => array('class' => array('date-format')),
'#default_value' => (isset($date_short_choices[$date_format_short]) ? $date_format_short : 'custom'),
'#options' => $date_short_choices,
);
@@ -1701,7 +1701,7 @@ function system_regional_settings() {
'#suffix' => '</div></div>',
'#type' => 'textfield',
'#title' => t('Custom short date format'),
- '#attributes' => array('class' => 'custom-format'),
+ '#attributes' => array('class' => array('custom-format')),
'#default_value' => $default_short_custom,
'#description' => t('A user-defined short date format. See the <a href="@url">PHP manual</a> for available options. This format is currently set to display as <span>%date</span>.', array('@url' => 'http://php.net/manual/function.date.php', '%date' => format_date(REQUEST_TIME, 'custom', $default_short_custom))),
);
@@ -1712,7 +1712,7 @@ function system_regional_settings() {
'#suffix' => '</div>',
'#type' => 'select',
'#title' => t('Medium date format'),
- '#attributes' => array('class' => 'date-format'),
+ '#attributes' => array('class' => array('date-format')),
'#default_value' => (isset($date_medium_choices[$date_format_medium]) ? $date_format_medium : 'custom'),
'#options' => $date_medium_choices,
);
@@ -1723,7 +1723,7 @@ function system_regional_settings() {
'#suffix' => '</div></div>',
'#type' => 'textfield',
'#title' => t('Custom medium date format'),
- '#attributes' => array('class' => 'custom-format'),
+ '#attributes' => array('class' => array('custom-format')),
'#default_value' => $default_medium_custom,
'#description' => t('A user-defined medium date format. See the <a href="@url">PHP manual</a> for available options. This format is currently set to display as <span>%date</span>.', array('@url' => 'http://php.net/manual/function.date.php', '%date' => format_date(REQUEST_TIME, 'custom', $default_medium_custom))),
);
@@ -1734,7 +1734,7 @@ function system_regional_settings() {
'#suffix' => '</div>',
'#type' => 'select',
'#title' => t('Long date format'),
- '#attributes' => array('class' => 'date-format'),
+ '#attributes' => array('class' => array('date-format')),
'#default_value' => (isset($date_long_choices[$date_format_long]) ? $date_format_long : 'custom'),
'#options' => $date_long_choices,
);
@@ -1745,7 +1745,7 @@ function system_regional_settings() {
'#suffix' => '</div></div>',
'#type' => 'textfield',
'#title' => t('Custom long date format'),
- '#attributes' => array('class' => 'custom-format'),
+ '#attributes' => array('class' => array('custom-format')),
'#default_value' => $default_long_custom,
'#description' => t('A user-defined long date format. See the <a href="@url">PHP manual</a> for available options. This format is currently set to display as <span>%date</span>.', array('@url' => 'http://php.net/manual/function.date.php', '%date' => format_date(REQUEST_TIME, 'custom', $default_long_custom))),
);
@@ -2140,7 +2140,7 @@ function theme_system_modules_fieldset($form) {
$module = $form[$key];
$row = array();
unset($module['enable']['#title']);
- $row[] = array('class' => 'checkbox', 'data' => drupal_render($module['enable']));
+ $row[] = array('class' => array('checkbox'), 'data' => drupal_render($module['enable']));
$label = '<label';
if (isset($module['enable']['#id'])) {
$label .= ' for="' . $module['enable']['#id'] . '"';
@@ -2161,7 +2161,7 @@ function theme_system_modules_fieldset($form) {
if ($module['#required_by']) {
$description .= '<div class="admin-requirements">' . t('Required by: !module-list', array('!module-list' => implode(', ', $module['#required_by']))) . '</div>';
}
- $row[] = array('data' => $description, 'class' => 'description');
+ $row[] = array('data' => $description, 'class' => array('description'));
$rows[] = $row;
}
@@ -2208,13 +2208,13 @@ function theme_system_modules_uninstall($form) {
$rows[] = array(
array('data' => drupal_render($form['uninstall'][$module]), 'align' => 'center'),
'<strong><label for="' . $form['uninstall'][$module]['#id'] . '">' . drupal_render($form['modules'][$module]['name']) . '</label></strong>',
- array('data' => drupal_render($form['modules'][$module]['description']), 'class' => 'description'),
+ array('data' => drupal_render($form['modules'][$module]['description']), 'class' => array('description')),
);
}
// Only display table if there are modules that can be uninstalled.
if (empty($rows)) {
- $rows[] = array(array('data' => t('No modules are available to uninstall.'), 'colspan' => '3', 'align' => 'center', 'class' => 'message'));
+ $rows[] = array(array('data' => t('No modules are available to uninstall.'), 'colspan' => '3', 'align' => 'center', 'class' => array('message')));
}
$output = theme('table', $header, $rows);
diff --git a/modules/system/system.module b/modules/system/system.module
index bd98c8606..5088b4cf8 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1468,7 +1468,7 @@ function system_user_timezone(&$edit, &$form) {
);
if (!$edit['timezone'] && $edit['uid'] == $user->uid) {
$form['timezone']['#description'] = t('Your time zone setting will be automatically detected if possible. Please confirm the selection and click save.');
- $form['timezone']['timezone']['#attributes'] = array('class' => 'timezone-detect');
+ $form['timezone']['timezone']['#attributes'] = array('class' => array('timezone-detect'));
drupal_add_js('misc/timezone.js');
}
}
@@ -1524,7 +1524,7 @@ function system_block_configure($delta = '') {
$form['wrapper']['preview'] = array(
'#type' => 'item',
'#title' => 'Preview',
- '#markup' => theme('image', $image_path, t('Powered by Drupal, an open source content management system'), t('Powered by Drupal, an open source content management system'), array('class' => 'powered-by-preview'), FALSE),
+ '#markup' => theme('image', $image_path, t('Powered by Drupal, an open source content management system'), t('Powered by Drupal, an open source content management system'), array('class' => array('powered-by-preview')), FALSE),
);
return $form;
}
@@ -2195,7 +2195,7 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
// Confirm form fails duplication check, as the form values rarely change -- so skip it.
$form['#skip_duplicate_check'] = TRUE;
- $form['#attributes'] = array('class' => 'confirmation');
+ $form['#attributes'] = array('class' => array('confirmation'));
$form['description'] = array('#markup' => $description);
$form[$name] = array('#type' => 'hidden', '#value' => 1);