summaryrefslogtreecommitdiff
path: root/modules/profile/profile.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
commit36ec18969549ff173b45ae35577e035c2c19f641 (patch)
tree8a73f48534a188f946e6edf5ecad90f837ce3d84 /modules/profile/profile.admin.inc
parent73a72337bb4c296211c5cb728b027ad0fefa85ed (diff)
downloadbrdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.gz
brdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.bz2
#326539 by JohnAlbin, sun, cha0s, ultimateboy, Rob Loach, Damien Tournoud: Convert 'class' attribute to use an array, not a string.
Diffstat (limited to 'modules/profile/profile.admin.inc')
-rw-r--r--modules/profile/profile.admin.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/profile/profile.admin.inc b/modules/profile/profile.admin.inc
index 95b2c5a0a..f1bf2855c 100644
--- a/modules/profile/profile.admin.inc
+++ b/modules/profile/profile.admin.inc
@@ -116,9 +116,9 @@ function theme_profile_admin_overview($form) {
// Category classes are given numeric IDs because there's no guarantee
// class names won't contain invalid characters.
$categories[$category] = $category_number;
- $category_field['#attributes']['class'] = 'profile-category profile-category-' . $category_number;
- $rows[] = array(array('data' => $category, 'colspan' => 7, 'class' => 'category'));
- $rows[] = array('data' => array(array('data' => '<em>' . t('No fields in this category. If this category remains empty when saved, it will be removed.') . '</em>', 'colspan' => 7)), 'class' => 'category-' . $category_number . '-message category-message category-populated');
+ $category_field['#attributes']['class'] = array('profile-category', 'profile-category-' . $category_number);
+ $rows[] = array(array('data' => $category, 'colspan' => 7, 'class' => array('category')));
+ $rows[] = array('data' => array(array('data' => '<em>' . t('No fields in this category. If this category remains empty when saved, it will be removed.') . '</em>', 'colspan' => 7)), 'class' => array('category-' . $category_number . '-message', 'category-message', 'category-populated'));
// Make it draggable only if there is more than one field
if (isset($form['submit'])) {
@@ -129,8 +129,8 @@ function theme_profile_admin_overview($form) {
}
// Add special drag and drop classes that group fields together.
- $field['weight']['#attributes']['class'] = 'profile-weight profile-weight-' . $categories[$category];
- $field['category']['#attributes']['class'] = 'profile-category profile-category-' . $categories[$category];
+ $field['weight']['#attributes']['class'] = array('profile-weight', 'profile-weight-' . $categories[$category]);
+ $field['category']['#attributes']['class'] = array('profile-category', 'profile-category-' . $categories[$category]);
// Add the row
$row = array();
@@ -143,7 +143,7 @@ function theme_profile_admin_overview($form) {
}
$row[] = drupal_render($field['edit']);
$row[] = drupal_render($field['delete']);
- $rows[] = array('data' => $row, 'class' => 'draggable');
+ $rows[] = array('data' => $row, 'class' => array('draggable'));
}
}
if (empty($rows)) {