This is what my Render Array looks like
$content = array( '#slides' => $slides, '#theme' => 'slider_block', '#attached' => array( 'js' => array( drupal_get_path('module', 'single_slider') . '/js/test.js' => array( 'type' => 'file', ), ) ) ); $content['#attached']['js'] = array( 'data' => array('word' => 'world'), 'type' => 'setting' ); return $content;
At the moment this just returns with an empty object. If someone could point me in the right direction I'd appreciate it very much.
Thanks in advanced.