function restful_plugin_process in RESTful 7
Add defaults values to the restful related plugins.
1 string reference to 'restful_plugin_process'
- restful_ctools_plugin_type in ./
restful.module - Implements hook_ctools_plugin_type().
File
- ./
restful.module, line 22
Code
function restful_plugin_process(&$plugin, $info) {
// Common operations.
$plugin += array(
'description' => '',
);
// Call the plugin specific process functions.
$function = array(
'\\RestfulManager',
'pluginProcess' . preg_replace('/ /', '', ucwords(preg_replace('/_/', ' ', $info['type']))),
);
if (is_callable($function)) {
$plugin = call_user_func_array($function, array(
$plugin,
$info,
));
}
}