Looking through <a href="http://drupal.org/node/954804#comment-3751412">the patch in #12</a>, I see:<br><br><pre>+ $libraries['drupal.ajax'] = array(<br>+ 'js' => array(<br>+ 'misc/ajax.js' => array('group' => JS_LIBRARY, 'weight' => 2),<br>
+ ),<br>+ 'dependencies' => array(<br>+ array('system', 'drupal.progress'),<br>+ ),<br>+ );<br>+<br>+ // Drupal's batch API.<br>+ $libraries['drupal.batch'] = array(<br>
+ 'title' => 'Drupal batch API',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/batch.js' => array('cache' => FALSE),<br>+ ),<br>+ 'dependencies' => array(<br>
+ array('system', 'drupal.progress'),<br>+ ),<br>+ );<br>+<br>+ // Drupal's progress indicator.<br>+ $libraries['drupal.progress'] = array(<br>+ 'title' => 'Drupal progress indicator',<br>
+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/progress.js' => array('cache' => FALSE),<br>+ ),<br>+ );<br>+<br>+ // Drupal's form library.<br>+ $libraries['drupal.form'] = array(<br>
+ 'title' => 'Drupal form library',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/form.js' => array('group' => JS_LIBRARY, 'weight' => 1),<br>
+ ),<br>+ );<br>+<br>+ // Drupal's states library.<br>+ $libraries['drupal.states'] = array(<br>+ 'title' => 'Drupal states',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>
+ 'misc/states.js' => array('group' => JS_LIBRARY, 'weight' => 1),<br>+ ),<br>+ );<br>+<br>+ // Drupal's collapsible fieldset.<br>+ $libraries['drupal.collapse'] = array(<br>
+ 'title' => 'Drupal collapsible fieldset',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/collapse.js' => array(),<br>+ ),<br>+ 'dependencies' => array(<br>
+ // collapse.js relies on drupalGetSummary in form.js<br>+ array('system', 'drupal.form'),<br>+ ),<br>+ );<br>+<br>+ // Drupal's resizable textarea.<br>+ $libraries['drupal.textarea'] = array(<br>
+ 'title' => 'Drupal resizable textarea',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/textarea.js' => array(),<br>+ ),<br>+ );<br>+<br>+ // Drupal's autocomplete widget.<br>
+ $libraries['drupal.autocomplete'] = array(<br>+ 'title' => 'Drupal autocomplete',<br>+ 'version' => VERSION,<br>+ 'js' => array(<br>+ 'misc/autocomplete.js' => array(),<br>
+ ),<br>+ );<br>+<br> // jQuery.<br> $libraries['jquery'] = array(<br> 'title' => 'jQuery',<br>@@ -1087,7 +1170,7 @@ function system_library() {<br> );<br> <br> // jQuery Once.<br>
- $libraries['once'] = array(<br>+ $libraries['jquery.once'] = array(<br> 'title' => 'jQuery Once',<br> 'website' => '<a href="http://plugins.jquery.com/project/once">http://plugins.jquery.com/project/once</a>',<br>
'version' => '1.2',<br>@@ -1097,7 +1180,7 @@ function system_library() {<br> );<br> <br> // jQuery Form Plugin.<br>- $libraries['form'] = array(<br>+ $libraries['jquery.form'] = array(<br>
'title' => 'jQuery Form Plugin',<br> 'website' => '<a href="http://malsup.com/jquery/form/">http://malsup.com/jquery/form/</a>',<br> 'version' => '2.49',<br>
@@ -1107,7 +1190,7 @@ function system_library() {<br> );<br> <br> // jQuery BBQ plugin.<br>- $libraries['jquery-bbq'] = array(<br>+ $libraries['jquery.bbq'] = array(<br> 'title' => 'jQuery BBQ',<br>
'website' => '<a href="http://benalman.com/projects/jquery-bbq-plugin/">http://benalman.com/projects/jquery-bbq-plugin/</a>',<br> 'version' => '1.2.1',<br>@@ -1117,7 +1200,7 @@ function system_library() {<br>
);<br> <br> // Vertical Tabs.<br>- $libraries['vertical-tabs'] = array(<br>+ $libraries['drupal.vertical-tabs'] = array(<br> 'title' => 'Vertical Tabs',<br> 'website' => '<a href="http://drupal.org/node/323112">http://drupal.org/node/323112</a>',<br>
'version' => '1.0',<br>@@ -1127,6 +1210,10 @@ function system_library() {<br> 'css' => array(<br> 'misc/vertical-tabs.css' => array(),<br> ),<br>+ 'dependencies' => array(<br>
+ // Vertical tabs relies on drupalGetSummary in form.js<br>+ array('system', 'drupal.form'),<br>+ ),<br> );<br> <br> // Farbtastic.<br>@@ -1143,7 +1230,7 @@ function system_library() {<br>
);<br> <br> // Cookie.<br>- $libraries['cookie'] = array(<br>+ $libraries['jquery.cookie'] = array(<br> 'title' => 'Cookie',<br> 'website' => '<a href="http://plugins.jquery.com/project/cookie">http://plugins.jquery.com/project/cookie</a>',<br>
'version' => '1.0',<br>@@ -1533,6 +1620,15 @@ function system_library() {<br> ),<br> );<br> <br>+ // These library names are deprecated. Earlier versions of Drupal 7 didn't<br>+ // consistently namespace their libraries, so these names are included for<br>
+ // backwards compatibility with those versions.<br>+ $libraries['once'] = &$libraries['jquery.once'];<br>+ $libraries['form'] = &$libraries['jquery.form'];<br>+ $libraries['jquery-bbq'] = &$libraries['jquery.bbq'];<br>
+ $libraries['vertical-tabs'] = &$libraries['drupal.vertical-tabs'];<br>+ $libraries['cookie'] = &$libraries['jquery.cookie'];<br>+<br> return $libraries;<br> }<br><br></pre><br>
<div class="gmail_quote">On Sun, Dec 12, 2010 at 2:34 PM, Michael Prasuhn <span dir="ltr"><<a href="mailto:mike@mikeyp.net">mike@mikeyp.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Dec 12, 2010, at 1:22 PM, Randy Fay wrote:<br>
> (issue) Contrib modules should not use drupal_add_js() for core JavaScript files (which are all now packaged as libraries).<br>
<br>
</div>Which files are affected by this?<br>
<br>
-Mike<br>
__________________<br>
<font color="#888888">Michael Prasuhn<br>
<a href="mailto:mike@mikeyp.net">mike@mikeyp.net</a><br>
<a href="http://mikeyp.net" target="_blank">http://mikeyp.net</a><br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Randy Fay<br>Drupal Module and Site Development<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1 970.462.7450<br><br>