public function validatePageCollectionItem($page_id)
    {
        $page = $this->page->get($page_id);

        if (empty($page['status'])) {
            return $this->translation->text('@name is unavailable', array('@name' => $this->translation->text('Page')));
        }

        return true;
    }
public function validatePageCollectionItem($page_id)
    {
        $page = $this->page->get($page_id);

        if (empty($page['status'])) {
            return $this->translation->text('@name is unavailable', array('@name' => $this->translation->text('Page')));
        }

        return true;
    }
public function validatePageCollectionItem ( $ page_id ) { $ page = $ this -> page -> get ( $ page_id ) ; if ( empty ( $ page [ 'status' ] ) ) { return $ this -> translation -> text ( '@name is unavailable' , array ( '@name' => $ this -> translation -> text ( 'Page' ) ) ) ; } return true ; }
Validates page collection item. Hook callback
@param integer $page_id
@return boolean|string
Validates page collection item . Hook callback