function features_invoke in Features 7
Same name and namespace in other branches
- 6 features.module \features_invoke()
- 7.2 features.module \features_invoke()
Invoke a component callback.
5 calls to features_invoke()
- features_export_form in ./
features.admin.inc - Form constructor for features export form.
- features_export_render_hooks in ./
features.export.inc - Generate an array of hooks and their raw code.
- features_get_normal in ./
features.export.inc - Get normal objects for a given module/component pair.
- _drush_features_component_list in ./
features.drush.inc - Returns a listing of all known components, indexed by source.
- _features_restore in ./
features.module - Restore the specified modules to the default state.
File
- ./
features.module, line 518 - Module file for the features module, which enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together statisfy a certain use-case.
Code
function features_invoke($component, $callback) {
$args = func_get_args();
unset($args[0], $args[1]);
// Append the component name to the arguments.
$args[] = $component;
if ($function = features_hook($component, $callback)) {
return call_user_func_array($function, $args);
}
}