You are here

function panels_everywhere_get_site_templates in Panels Everywhere 7

Same name and namespace in other branches
  1. 6 panels_everywhere.module \panels_everywhere_get_site_templates()

Get a list of variants on the site template that can be used to select.

1 call to panels_everywhere_get_site_templates()
panels_everywhere_variant_template in ./panels_everywhere.module
Handle the form to add a template setting to any variant.

File

./panels_everywhere.module, line 275
panels_everywhere.module

Code

function panels_everywhere_get_site_templates() {
  $task = page_manager_get_task('site_template');
  $handlers = page_manager_load_sorted_handlers($task, '');
  $templates = array();
  foreach ($handlers as $id => $handler) {
    $plugin = page_manager_get_task_handler($handler->handler);
    $templates[$id] = page_manager_get_handler_title($plugin, $handler, $task, '');
  }
  return $templates;
}