public function callback()
    {
        // Get current page and section
        $identifier = $this->getModel()->getIdentifier();
        $currentPage = Request::get('page');
        $currentSection = Request::get('section');

        $page_id = str_replace($identifier.'-', '', $currentPage);

        // Check current page
        if (!$this->getModel()->hasPage($page_id)) {
            return;
        }

        // Store details
        $options = $this->getModel()->getPages($page_id);

        // Works on hook
        $hook = new AdminPageHook($currentPage, $currentSection, $options);
        $this->getModel()->setHook($hook);
    }
public function callback()
    {
        // Get current page and section
        $identifier = $this->getModel()->getIdentifier();
        $currentPage = Request::get('page');
        $currentSection = Request::get('section');

        $page_id = str_replace($identifier.'-', '', $currentPage);

        // Check current page
        if (!$this->getModel()->hasPage($page_id)) {
            return;
        }

        // Store details
        $options = $this->getModel()->getPages($page_id);

        // Works on hook
        $hook = new AdminPageHook($currentPage, $currentSection, $options);
        $this->getModel()->setHook($hook);
    }
public function callback ( ) { // Get current page and section $ identifier = $ this -> getModel ( ) -> getIdentifier ( ) ; $ currentPage = Request :: get ( 'page' ) ; $ currentSection = Request :: get ( 'section' ) ; $ page_id = str_replace ( $ identifier . '-' , '' , $ currentPage ) ; // Check current page if ( ! $ this -> getModel ( ) -> hasPage ( $ page_id ) ) { return ; } // Store details $ options = $ this -> getModel ( ) -> getPages ( $ page_id ) ; // Works on hook $ hook = new AdminPageHook ( $ currentPage , $ currentSection , $ options ) ; $ this -> getModel ( ) -> setHook ( $ hook ) ; }
Hook callback.
Hook callback .