You are here

function panels_page_construct_static_menu_link in Panels 6.2

Build a panels_page menu entry for a static panels_page.

1 call to panels_page_construct_static_menu_link()
_panels_page_create_menu_structure in panels_page/panels_page.menu.inc

File

panels_page/panels_page.menu.inc, line 352
panels_page.menu.inc

Code

function panels_page_construct_static_menu_link(&$items, $panel_page, $map) {
  $type = _panels_page_menu_type($panel_page);
  panels_page_construct_menu_item_metadata($items, $panel_page);
  $items['menu items'][$panel_page->path] = array(
    'title' => filter_xss_admin(panels_page_get_title($panel_page, 'menu', '')),
    'access callback' => 'panels_page_access_handler',
    'access arguments' => array(
      $panel_page->name,
    ),
    'page callback' => 'panels_page_render_handler',
    'page arguments' => array(
      $panel_page->name,
    ),
    'type' => $type,
    'module' => 'panels_page',
    'file' => 'panels_page.render.inc',
  );
  _panels_page_construct_parent_menu_item($items, $panel_page, $panel_page->path, $type);
}