diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-22 14:34:23 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-22 14:34:23 +0000 |
commit | 36ec18969549ff173b45ae35577e035c2c19f641 (patch) | |
tree | 8a73f48534a188f946e6edf5ecad90f837ce3d84 /modules/upload | |
parent | 73a72337bb4c296211c5cb728b027ad0fefa85ed (diff) | |
download | brdo-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/upload')
-rw-r--r-- | modules/upload/upload.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module index e1f86db7a..726e0865b 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -78,7 +78,7 @@ function upload_node_links($node, $build_mode) { $node->content['links']['upload_attachments'] = array( '#theme' => 'links', '#links' => $links, - '#attributes' => array('class' => 'links inline'), + '#attributes' => array('class' => array('links', 'inline')), ); } } @@ -445,7 +445,7 @@ function theme_upload_attachments($elements) { } } if (count($rows)) { - return theme('table', $header, $rows, array('class' => 'attachments')); + return theme('table', $header, $rows, array('class' => array('attachments'))); } } @@ -603,7 +603,7 @@ function theme_upload_form_current($form) { foreach (element_children($form) as $key) { // Add class to group weight fields for drag and drop. - $form[$key]['weight']['#attributes']['class'] = 'upload-weight'; + $form[$key]['weight']['#attributes']['class'] = array('upload-weight'); $row = array(''); $row[] = drupal_render($form[$key]['remove']); @@ -611,7 +611,7 @@ function theme_upload_form_current($form) { $row[] = drupal_render($form[$key]['description']); $row[] = drupal_render($form[$key]['weight']); $row[] = drupal_render($form[$key]['size']); - $rows[] = array('data' => $row, 'class' => 'draggable'); + $rows[] = array('data' => $row, 'class' => array('draggable')); } $output = theme('table', $header, $rows, array('id' => 'upload-attachments')); $output .= drupal_render_children($form); |