Controller/Component/OpauthComponent.php
public function enabled($name = null) {
		if (empty($this->_providers)) {
			$this->_providers = (array) Configure::read('Opauth.Strategy');
		}

		if (empty($this->_providers)) {
			return false;
		}

		if (!empty($name)) {
			return isset($this->_providers[$name]);
		}

		return $this->_providers;
	}
public function enabled($name = null) {
		if (empty($this->_providers)) {
			$this->_providers = (array) Configure::read('Opauth.Strategy');
		}

		if (empty($this->_providers)) {
			return false;
		}

		if (!empty($name)) {
			return isset($this->_providers[$name]);
		}

		return $this->_providers;
	}
public function enabled ( $ name = null ) { if ( empty ( $ this -> _providers ) ) { $ this -> _providers = ( array ) Configure :: read ( 'Opauth.Strategy' ) ; } if ( empty ( $ this -> _providers ) ) { return false ; } if ( ! empty ( $ name ) ) { return isset ( $ this -> _providers [ $ name ] ) ; } return $ this -> _providers ; }
Check if a given provider's strategy is enabled.

@param string $name Optional. Provider's name (i.e. linkedin, facebook, etc.).
@return mixed True if given name is enabled, false if not and the list of enabled providers if no name provided.
Check if a given provider s strategy is enabled .