:100644 100644 6b00a2e... 0000000... M sites/all/modules/contrib/homebox/homebox.module diff --git a/sites/all/modules/contrib/homebox/homebox.module b/sites/all/modules/contrib/homebox/homebox.module index 6b00a2e..0a7313a 100644 --- a/sites/all/modules/contrib/homebox/homebox.module +++ b/sites/all/modules/contrib/homebox/homebox.module @@ -389,13 +389,13 @@ function homebox_build($page) { foreach ($blocks as $delta => $info) { $options = array(); if (isset($info['used'])) { - $options['attributes'] = array('class' => 'used'); + $options['attributes'] = array('class' => array('used')); } $add_links[] = homebox_add_link($info['info'], $page, $module, $delta, $options); } } - $add_links['restore'] = l(t('Restore to defaults'), 'homebox/' . $page->name . '/restore', array('attributes' => array('class' => 'restore'))); - $add_links = theme('item_list', array('items' => $add_links, 'title' => NULL, 'type' => 'ul', 'attributes' => array('class' => 'clear-block'))); + $add_links['restore'] = l(t('Restore to defaults'), 'homebox/' . $page->name . '/restore', array('attributes' => array('class' => array('restore')))); + $add_links = theme('item_list', array('items' => $add_links, 'title' => NULL, 'type' => 'ul', 'attributes' => array('class' => array('clear-block')))); $form = drupal_get_form('homebox_save_form', $page); $save_form = drupal_render($form); @@ -410,7 +410,7 @@ function homebox_build($page) { $num_regions = count($regions); for ($i = 1; $i <= $num_regions; $i++) { $width = 100 / $num_regions; - + // We use a combination of round() and floor() to get this rounded to two decimal places // since the $mode argument isn't introducted into round() until PHP 5.3.0. $page->settings['widths'][$i] = round(floor($width * 100) / 100, 2); @@ -596,7 +596,7 @@ function homebox_prepare_block($block_key, $page) { else { // No cache, fetch the blocks from modules $array = module_invoke($block->module, 'block_view', $block->delta); - + // Allow modules to modify the block before it is viewed, via either // hook_block_view_alter() or hook_block_view_MODULE_DELTA_alter(). drupal_alter(array('block_view', "block_view_{$block->module}_{$block->delta}"), $array, $block); @@ -694,7 +694,7 @@ function homebox_get_cache_id($page, $block) { function homebox_block_edit_form_builder($form, &$form_state, $page, $block) { $form = module_invoke($block->module, 'homebox_block_edit_form', $block); - $form['#attributes']['class'] = 'clear-block'; + $form['#attributes']['class'] = array('clear-block'); $form['save'] = array( '#type' => 'submit', '#id' => 'save-' . $block->key,