protected function js_module_loaded($module) {
        if (is_string($module)) {
            $modulename = $module;
        } else {
            $modulename = $module['name'];
        }
        return array_key_exists($modulename, $this->YUI_config->modules) ||
               array_key_exists($modulename, $this->extramodules);
    }
protected function js_module_loaded($module) {
        if (is_string($module)) {
            $modulename = $module;
        } else {
            $modulename = $module['name'];
        }
        return array_key_exists($modulename, $this->YUI_config->modules) ||
               array_key_exists($modulename, $this->extramodules);
    }
protected function js_module_loaded ( $ module ) { if ( is_string ( $ module ) ) { $ modulename = $ module ; } else { $ modulename = $ module [ 'name' ] ; } return array_key_exists ( $ modulename , $ this -> YUI_config -> modules ) || array_key_exists ( $ modulename , $ this -> extramodules ) ; }
Returns true if the module has already been loaded.

@param string|array $module
@return bool True if the module has already been loaded
Returns true if the module has already been loaded .