diff --git a/developer/topics/forms_api_reference.html b/developer/topics/forms_api_reference.html
index 02866ae..0a380ea 100644
--- a/developer/topics/forms_api_reference.html
+++ b/developer/topics/forms_api_reference.html
@@ -2763,10 +2763,18 @@ $form['#attached']['js'] = array(<br/>
 );<br/>
 </code>
 </div>
-
 <p>and inline javascript can be loaded with the javascript as the key of the array,
 as described in <a href="http://api.drupal.org/api/function/drupal_add_js/7">drupal_add_js()</a></p>
-
+<p><strong>Adding settings</strong></p>
+<p>You add a javascript setting by using the 'data' key (as php keys can't be arrays):</p>
+<div class="codeblock"> <code>
+$settings = array('id' => 'mymodule-element-1');<br />
+$form['#attached']['js'][] = array(<br/>
+&nbsp;&nbsp;'data' => array('mymodule' => $settings),<br/>
+&nbsp;&nbsp;'type' => 'setting',<br/>
+);<br/>
+</code>
+</div>
 <h3><a name="attributes" id="attributes">#attributes</a></h3>
 
 <p><strong>Used by</strong>: <a href="#button">button</a>, <a href="#checkbox">checkbox</a>, <a href="#checkboxes">checkboxes</a>, <a href="#date">date</a>, <a href="#fieldset">fieldset</a>, <a href="#file">file</a>, <a href="#form">form</a>, <a href="#image_button">image_button</a>, <a href="#password">password</a>,
