function _panels_sections_panels_page_select in Panels Sections 6
Same name and namespace in other branches
- 6.2 panels_sections.module \_panels_sections_panels_page_select()
Loads the options for the Panels Page select form element
1 call to _panels_sections_panels_page_select()
File
- ./
panels_sections.module, line 299 - Allows you to define panels_sections of your site and apply s to those panels_sections.
Code
function _panels_sections_panels_page_select() {
module_load_include('inc', 'panels_page', 'panels_page.read');
$panels_pages = panels_page_load_all();
$options = array();
foreach ($panels_pages as $item) {
$name = $item->name;
$pid = $item->pid;
$options[$pid] = $name;
}
return $options;
}