add an additional item to an array in Drupal Settings javascript from php
Your first declaration should indicate that you are passing a setting to drupal_add_js():

drupal_add_js(array('your_module' =&gt; array()), 'setting');


Then you can add other properties to your array in hook_node_view():

function your_module_node_view($node, $view_mode, $langcode) {
    $your_array = array(
      'vimn_video' =&gt; array(
        'embedded_videos' =&gt; array($node-&gt;nid), // NOTE: $node-&gt;nid as an array
      ),
    );
    drupal_add_js(array('your_module' =&gt; $your_array), 'setting');  
}  


You can retrieve the properties from javascript as:

Drupal.settings.your_module.vimn_video.embedded_videos; // an array with node ids.