function _phptemplate_variables($hook, $vars) { drupal_add_js("asd", 'theme'); if ($hook == 'page') { return $vars; } return array(); }