function ds_plugins_process in Display Suite 6
Same name and namespace in other branches
- 6.3 ds.module \ds_plugins_process()
- 6.2 ds.module \ds_plugins_process()
Process plugins.
Parameters
string $module The module to process for.:
string $object_type The type of object (node, user, comment).:
array $display_settings Display settings.:
array $vars The variables currently processed.:
stdClass $display Collection of arrays with object data.:
1 call to ds_plugins_process()
- ds_render_content in ./
ds.module - Render content for an object.
File
- ./
ds.module, line 620
Code
function ds_plugins_process($module, $object_type, $display_settings, &$vars, &$display) {
$plugins = variable_get($module . '_plugin_settings', array());
if (!empty($plugins)) {
foreach ($plugins as $key => $data) {
if (isset($data['filename']) && isset($data['class'])) {
require_once $data['filename'];
$class = $data['class'];
$plugin = new $class();
$plugin
->execute($vars, $display, $display_settings, $object_type, $module);
}
}
}
}