? lib Index: yui.info =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/yui/yui.info,v retrieving revision 1.2.2.2 diff -u -p -r1.2.2.2 yui.info --- yui.info 7 Jun 2008 19:31:42 -0000 1.2.2.2 +++ yui.info 14 Oct 2008 23:33:15 -0000 @@ -2,10 +2,4 @@ name = YUI description = YUI Module Common paramerets package = "Yahoo YUI" -core = 6.x -; Information added by drupal.org packaging script on 2008-06-07 -version = "6.x-1.1-2" core = "6.x" -project = "yui" -datestamp = "1212855018" - Index: yui.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/yui/yui.module,v retrieving revision 1.9.2.2 diff -u -p -r1.9.2.2 yui.module --- yui.module 7 Jun 2008 19:31:42 -0000 1.9.2.2 +++ yui.module 14 Oct 2008 23:33:15 -0000 @@ -4,9 +4,9 @@ /** * @file * YUI Common module. - * + * * Bunyamin AKYILDIZ (bakyildiz). - */ + */ /** * Implementation of hook_help(). @@ -41,8 +41,8 @@ function yui_init() { * Form builder; configure the YUI module. * * @ingroup forms - * @see system_settings_form() - */ + * @see system_settings_form() + */ function yui_admin() { $form['yui_source'] = array( '#type' => 'textfield', @@ -92,10 +92,9 @@ function yui_add_js($component = NULL, $ static $js_files = array(); if (! preg_match('/^http:\/\//', $yui_source)) { - $yui_source = base_path() . $yui_source; + drupal_add_js($yui_source . $file_and_path); } - - if (! in_array($yui_source . $file_and_path, $js_files)) { + elseif (! in_array($yui_source . $file_and_path, $js_files)) { drupal_set_html_head(''); $js_files[] = $yui_source . $file_and_path; } @@ -115,10 +114,9 @@ function yui_add_css($component = NULL, static $css_files = array(); if (! preg_match('/^http:\/\//', $yui_source)) { - $yui_source = base_path() . $yui_source; - } - - if (! in_array($yui_source . $file_and_path, $css_files)) { + drupal_add_css($yui_source . $file_and_path); + } + elseif (! in_array($yui_source . $file_and_path, $css_files)) { drupal_set_html_head(''); $css_files[] = $yui_source . $file_and_path; }