--- plugins/sifr.inc 2008-12-09 16:10:35.000000000 -0600 +++ /home/striedinger/sandbox/render_module/plugins/sifr.inc 2008-09-12 15:42:33.000000000 -0500 @@ -416,18 +416,16 @@ $fontsize$letterspacing} * Perform all necessary actions to load this plugin on all pages. */ function sifr_render_load() { - // GO TO PLUGINS DIR - $plugindir = drupal_get_path('module','render') . "/plugins"; + $plugindir = render_find_render('sifr'); if (!$plugindir) { $info = sifr_render_info(); $link_sifr = l($info['title'], $info['url']); $link_readme = l('sifr-README.txt', drupal_get_path('module', 'render') .'/plugins/sifr-README.txt'); - drupal_set_message(t('The sIFR v2 library is in not installed correctly. Please download it from !link and follow installation instructions in !readme.', array('!link' => $link_sifr, '!readme' => $link_readme)), 'error'); + drupal_set_message(t('The sIFR library is in not installed correctly. Please download it from !link and follow installation instructions in !readme.', array('!link' => $link_sifr, '!readme' => $link_readme)), 'error'); } else { - // sifr DIR to get needed files and render to page. - drupal_add_js($plugindir .'/sifr/sifr.js'); - drupal_add_css($plugindir .'/sifr/sIFR-print.css', 'module', 'print'); + drupal_add_js($plugindir .'/sifr.js'); + drupal_add_css($plugindir .'/sIFR-print.css', 'module', 'print'); } }