summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index ce0efcf4f..9b18292f6 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