You are here

public function PanelizerEntityDefault::get_default_panelizer_objects in Panelizer 7.2

Same name and namespace in other branches
  1. 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::get_default_panelizer_objects()

Get the default panelizers for the given bundle.

2 calls to PanelizerEntityDefault::get_default_panelizer_objects()
PanelizerEntityDefault::add_bundle_setting_form_submit in plugins/entity/PanelizerEntityDefault.class.php
Submit callback for the bundle edit form.
PanelizerEntityDefault::hook_field_attach_form in plugins/entity/PanelizerEntityDefault.class.php

File

plugins/entity/PanelizerEntityDefault.class.php, line 1256
Base class for the Panelizer Entity plugin.

Class

PanelizerEntityDefault
Base class for the Panelizer Entity plugin.

Code

public function get_default_panelizer_objects($bundle) {
  $conditions = array(
    'panelizer_type' => $this->entity_type,
    'panelizer_key' => $bundle,
  );
  ctools_include('export');
  return ctools_export_load_object('panelizer_defaults', 'conditions', $conditions);
}