You are here

function panels_plugin_styles_process in Panels 8.3

Same name and namespace in other branches
  1. 6.3 panels.module \panels_plugin_styles_process()
  2. 7.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()

File

./panels.module, line 202
panels.module

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