public static function add_page() { $page = DispletRetsIdxAdminPagesController::add_displet_tools_submenu_page(array('capability' => self::$_capabilities['view_leads'], 'menu_title' => 'Lead Manager', 'page_callback' => array('DispletRetsIdxLeadManagerPageController', 'include_page'), 'page_slug' => self::$_slugs['lead_manager_page'])); if ($page) { add_action('load-' . $page, array('DispletRetsIdxLeadManagerPageController', 'filter_lead_manager_query_vars')); } }
protected function _add_page() { $page = DispletRetsIdxAdminPagesController::add_displet_tools_submenu_page(array('menu_title' => $this->_model['menu_title'], 'page_callback' => array($this, 'render_page'), 'page_slug' => $this->_model['page_slug'])); if ($page) { $this->_add_page_hooks($page); } }
public static function add_page() { DispletRetsIdxAdminPagesController::add_displet_tools_submenu_page(array('menu_title' => 'Search Forms', 'page_callback' => array('DispletRetsIdxSearchFormsPageController', 'render_page'), 'page_slug' => self::$_slugs['search_forms_page'])); }