public function is_enabled() {
        if (!$this->rootdir) {
            // Plugin missing.
            return false;
        }

        $enabled = $this->pluginman->get_enabled_plugins($this->type);

        if (!is_array($enabled)) {
            return null;
        }

        return isset($enabled[$this->name]);
    }
public function is_enabled() {
        if (!$this->rootdir) {
            // Plugin missing.
            return false;
        }

        $enabled = $this->pluginman->get_enabled_plugins($this->type);

        if (!is_array($enabled)) {
            return null;
        }

        return isset($enabled[$this->name]);
    }
public function is_enabled ( ) { if ( ! $ this -> rootdir ) { // Plugin missing. return false ; } $ enabled = $ this -> pluginman -> get_enabled_plugins ( $ this -> type ) ; if ( ! is_array ( $ enabled ) ) { return null ; } return isset ( $ enabled [ $ this -> name ] ) ; }
Returns the information about plugin availability

True means that the plugin is enabled. False means that the plugin is
disabled. Null means that the information is not available, or the
plugin does not support configurable availability or the availability
can not be changed.

@return null|bool
Returns the information about plugin availability