You can pass an array to JS like this: drupal_add_js(array('my_module' => array('events' => $events)), 'setting');. In javascript you can get the values ...
確定! 回上一頁