src/Arx/Utils/Hook.php
public static function get($name, $default = null){

        $dots = null;

        if ($pos = strpos($name, '.')) {
            $dots = substr($name, $pos + 1);
            $name = substr($name, 0, $pos);
        }

        if(isset($GLOBALS[ARX_HOOK][$name])){

            if ($dots) {
                return Arr::get($GLOBALS[ARX_HOOK][$name], $dots, $default);
            }

            return $GLOBALS[ARX_HOOK][$name];
        }

        if ($default) {
            return $default;
        }

        return false;
    }
public static function get($name, $default = null){

        $dots = null;

        if ($pos = strpos($name, '.')) {
            $dots = substr($name, $pos + 1);
            $name = substr($name, 0, $pos);
        }

        if(isset($GLOBALS[ARX_HOOK][$name])){

            if ($dots) {
                return Arr::get($GLOBALS[ARX_HOOK][$name], $dots, $default);
            }

            return $GLOBALS[ARX_HOOK][$name];
        }

        if ($default) {
            return $default;
        }

        return false;
    }
public static function get ( $ name , $ default = null ) { $ dots = null ; if ( $ pos = strpos ( $ name , '.' ) ) { $ dots = substr ( $ name , $ pos + 1 ) ; $ name = substr ( $ name , 0 , $ pos ) ; } if ( isset ( $ GLOBALS [ ARX_HOOK ] [ $ name ] ) ) { if ( $ dots ) { return Arr :: get ( $ GLOBALS [ ARX_HOOK ] [ $ name ] , $ dots , $ default ) ; } return $ GLOBALS [ ARX_HOOK ] [ $ name ] ; } if ( $ default ) { return $ default ; } return false ; }
Get registered hook

@param $name
@param array $param
@return bool
Get registered hook