From d35abf8f711fa2afc8106f2227c537f415a3fe0c Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Sat, 20 Nov 2010 09:46:22 +0000 Subject: [PATCH] #880368 by tstoeckler, jhodgdon: Fixed Document how to load external files with #attached --- includes/common.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/includes/common.inc b/includes/common.inc index ce0efcf4f180..9b18292f66c8 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -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 -- GitLab