commit 6a9a8dfa13b49721f4478679d97407ee66b6d8af Author: Lee Rowlands Date: Fri Aug 24 06:59:11 2012 +1000 Patch 63 diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc index d4a30fb..5fdba76 100644 --- a/core/modules/locale/locale.pages.inc +++ b/core/modules/locale/locale.pages.inc @@ -255,9 +255,7 @@ function locale_translate_edit_form($form, &$form_state) { $form['#attached']['css'] = array( $path . '/locale.admin.css', ); - $form['#attached']['library'] = array( - array('locale', 'drupal.locale.admin') - ); + $form['#attached']['library'][] = array('locale', 'drupal.locale.admin'); $form['langcode'] = array( '#type' => 'value', diff --git a/core/modules/statistics/statistics.module b/core/modules/statistics/statistics.module index 56e48f4..c07a1c8 100644 --- a/core/modules/statistics/statistics.module +++ b/core/modules/statistics/statistics.module @@ -103,9 +103,7 @@ function statistics_permission() { */ function statistics_node_view(Node $node, $view_mode) { if (!empty($node->nid) && $view_mode == 'full') { - $node->content['#attached']['library'] = array( - array('statistics', 'drupal.statistics'), - ); + $node->content['#attached']['library'][] = array('statistics', 'drupal.statistics'); $settings = array('nid' => $node->nid); $node->content['#attached']['js'][] = array( 'data' => array('statistics' => $settings), @@ -469,7 +467,9 @@ function statistics_library_info() { 'title' => 'Statistics', 'version' => VERSION, 'js' => array( - drupal_get_path('module', 'statistics') . '/statistics.js' => array(), + drupal_get_path('module', 'statistics') . '/statistics.js' => array( + 'scope' => 'footer' + ), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/translation/translation.module b/core/modules/translation/translation.module index cceb134..ce4163f 100644 --- a/core/modules/translation/translation.module +++ b/core/modules/translation/translation.module @@ -116,9 +116,7 @@ function translation_permission() { function translation_form_node_type_form_alter(&$form, &$form_state) { // Hide form element if default language is a constant. // TODO: When form #states allows OR values change this to use form #states. - $form['#attached']['library'] = array( - array('translation', 'drupal.translation'), - ); + $form['#attached']['library'][] = array('translation', 'drupal.translation'); // Add translation option to content type form. $form['language']['node_type_language_translation_enabled'] = array( '#type' => 'checkbox',