#880368 by tstoeckler, jhodgdon: Fixed Document how to load external files with #attached

merge-requests/26/head
Angie Byron 2010-11-20 09:46:22 +00:00
parent ed4b74024a
commit d35abf8f71
1 changed files with 9 additions and 0 deletions

View File

@ -4174,6 +4174,15 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS
* );
* @endcode
*
* External 'js' and 'css' files can also be loaded. For example:
* @code
* $build['#attached']['js'] = array(
* 'http://code.jquery.com/jquery-1.4.2.min.js' => array(
* 'type' => 'external',
* ),
* );
* @endcode
*
* @param $elements
* The structured array describing the data being rendered.
* @param $group