You are here

function panels_stylizer_get_substyles in Panels 6.3

Same name and namespace in other branches
  1. 7.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
Definition of the 'stylizer' panel style.

File

plugins/styles/stylizer.inc, line 73
Definition of the 'stylizer' panel style.

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;
}