You are here

function panels_plugin_styles_process in Panels 7.3

Same name and namespace in other branches
  1. 8.3 panels.module \panels_plugin_styles_process()
  2. 6.3 panels.module \panels_plugin_styles_process()

Perform additional processing on a style plugin.

Currently this is only being used to apply versioning information to style plugins in order to ensure the legacy renderer passes the right type of parameters to a style plugin in a hybrid environment of both new and old plugins.

Parameters

array $plugin: The style plugin that is being processed.

array $info: The style plugin type info array.

See also

_ctools_process_data()

1 string reference to 'panels_plugin_styles_process'
panels_ctools_plugin_type in ./panels.module
Implements hook_ctools_plugin_type().

File

./panels.module, line 511
Core functionality for the Panels engine.

Code

function panels_plugin_styles_process(&$plugin, $info) {
  $plugin += array(
    'weight' => 0,
  );
  $compliant_modules = ctools_plugin_api_info('panels', 'styles', 2.0, 2.0);
  $plugin['version'] = empty($compliant_modules[$plugin['module']]) ? 1.0 : $compliant_modules[$plugin['module']]['version'];
}