function panels_stylizer_get_substyles in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/styles/stylizer.inc \panels_stylizer_get_substyles()
Callback to provide all stored stylizer styles.
1 string reference to 'panels_stylizer_get_substyles'
- stylizer.inc in plugins/
styles/ stylizer.inc
File
- plugins/
styles/ stylizer.inc, line 75
Code
function panels_stylizer_get_substyles($plugin, $style_name) {
$styles[$style_name] = $plugin;
ctools_include('export');
ctools_include('stylizer');
$items = ctools_export_crud_load_all('stylizer');
foreach ($items as $name => $item) {
$base = ctools_get_style_base($item->settings['style_base']);
if ($base && $base['module'] == 'panels') {
$styles['stylizer:' . $name] = panels_stylizer_merge_plugin($plugin, $item);
}
}
return $styles;
}