You are here

function panels_page_default_panels in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_page/panels_page.module \panels_page_default_panels()

Get all 'default' panels.

5 calls to panels_page_default_panels()
panels_page_disable_page in panels_page/panels_page.admin.inc
Disable a default panel_page.
panels_page_enable_page in panels_page/panels_page.admin.inc
Enable a default panel_page.
panels_page_load in panels_page/panels_page.read.inc
Load a panel page.
panels_page_load_all in panels_page/panels_page.read.inc
Fetch all panel pages in the system.
_panels_page_check_switchers in panels_page/panels_page.render.inc

File

panels_page/panels_page.read.inc, line 136
panels_page.write.inc

Code

function panels_page_default_panels() {
  $panels = module_invoke_all('default_panel_pages');
  $return = array();
  if (is_array($panels)) {
    foreach ($panels as $panel_page) {
      $return[$panel_page->name] = $panel_page;
    }
  }
  return $return;
}