roundcubemail/program/lib/Roundcube/rcube_plugin_api.php
public function include_script($fn)
    {
        if (is_object($this->output) && $this->output->type == 'html') {
            $src = $this->resource_url($fn);
            $this->output->add_header(html::tag('script',
                array('type' => "text/javascript", 'src' => $src)));
        }
    }
public function include_script($fn)
    {
        if (is_object($this->output) && $this->output->type == 'html') {
            $src = $this->resource_url($fn);
            $this->output->add_header(html::tag('script',
                array('type' => "text/javascript", 'src' => $src)));
        }
    }
public function include_script ( $ fn ) { if ( is_object ( $ this -> output ) && $ this -> output -> type == 'html' ) { $ src = $ this -> resource_url ( $ fn ) ; $ this -> output -> add_header ( html :: tag ( 'script' , array ( 'type' => "text/javascript" , 'src' => $ src ) ) ) ; } }
Include a plugin script file in the current HTML page

@param string $fn Path to script
Include a plugin script file in the current HTML page