function panelizer_load_default_by_name in Panelizer 6
Same name and namespace in other branches
- 7 panelizer.module \panelizer_load_default_by_name()
Fetch the panelizer default record for a panelizer name.
When configured properly, things can have default displays attached to them. This fetches the display, if there is one.
2 calls to panelizer_load_default_by_name()
- panelizer_context_cache_get in ./
panelizer.module - Fetch the panelizer object from the object cache.
- panelizer_panels_cache_get in ./
panelizer.module - Get display edit cache for a panel being edited.
File
- ./
panelizer.module, line 375 - panelizer.module
Code
function panelizer_load_default_by_name($load_name, $default_anyway = FALSE) {
list($type, $key, $name) = panelizer_get_type_key_name($load_name);
return _panelizer_load_default($type, $key, $name, $load_name, $default_anyway);
}