Skip to content
Snippets Groups Projects
Commit d35abf8f authored by Angie Byron's avatar Angie Byron
Browse files

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

parent ed4b7402
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment