lib/Skeleton/Core/Hook.php
public static function exists($name) {
		$application = Application::get();

		if (!in_array($name, self::$definable_hooks)) {
			return false;
		}

		if (file_exists($application->path . '/config/Hook.php')) {
			require_once $application->path . '/config/Hook.php';
			$classname = 'Hook_' . ucfirst($application->name);

			if (method_exists($classname, $name)) {
				return true;
			}
		}

		return false;
	}
public static function exists($name) {
		$application = Application::get();

		if (!in_array($name, self::$definable_hooks)) {
			return false;
		}

		if (file_exists($application->path . '/config/Hook.php')) {
			require_once $application->path . '/config/Hook.php';
			$classname = 'Hook_' . ucfirst($application->name);

			if (method_exists($classname, $name)) {
				return true;
			}
		}

		return false;
	}
public static function exists ( $ name ) { $ application = Application :: get ( ) ; if ( ! in_array ( $ name , self :: $ definable_hooks ) ) { return false ; } if ( file_exists ( $ application -> path . '/config/Hook.php' ) ) { require_once $ application -> path . '/config/Hook.php' ; $ classname = 'Hook_' . ucfirst ( $ application -> name ) ; if ( method_exists ( $ classname , $ name ) ) { return true ; } } return false ; }
Check if a hook exists in the current application

@access public
@param string $name
@return bool
Check if a hook exists in the current application