summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJennifer Hodgdon2012-11-07 15:20:24 (GMT)
committer Jennifer Hodgdon2012-11-07 15:20:24 (GMT)
commit681fe02ead837b50ef95b0bb767270492309ee0e (patch)
tree6d3bc1900492811d93eea601a60284844d38f56f
parentf5b84d60aab461a0df9d3b20ad80b66aae25613e (diff)
Issue #1821024 by scuts, mjonesdinero: Fix up docs for drupal_add_js
-rw-r--r--includes/common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 5c6d86d..8276576 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3995,7 +3995,8 @@ function drupal_region_class($region) {
* actually needed.
*
* @param $data
- * (optional) If given, the value depends on the $options parameter:
+ * (optional) If given, the value depends on the $options parameter, or
+ * $options['type'] if $options is passed as an associative array:
* - 'file': Path to the file relative to base_path().
* - 'inline': The JavaScript code that should be placed in the given scope.
* - 'external': The absolute path to an external JavaScript file that is not