public function is_enabled() {
        list($componentname, $varname) = $this->get_config_var_name();

        $value = get_config($componentname, $varname . '_enabled');

        // Search areas are enabled by default.
        if ($value === false) {
            $value = 1;
        }
        return (bool)$value;
    }
public function is_enabled() {
        list($componentname, $varname) = $this->get_config_var_name();

        $value = get_config($componentname, $varname . '_enabled');

        // Search areas are enabled by default.
        if ($value === false) {
            $value = 1;
        }
        return (bool)$value;
    }
public function is_enabled ( ) { list ( $ componentname , $ varname ) = $ this -> get_config_var_name ( ) ; $ value = get_config ( $ componentname , $ varname . '_enabled' ) ; // Search areas are enabled by default. if ( $ value === false ) { $ value = 1 ; } return ( bool ) $ value ; }
Is the search component enabled by the system administrator?

@return bool
Is the search component enabled by the system administrator?