You are here

function features_invoke in Features 6

Same name and namespace in other branches
  1. 7.2 features.module \features_invoke()
  2. 7 features.module \features_invoke()

Invoke a component callback.

7 calls to features_invoke()
drush_features_add in ./features.drush.inc
Add a component to a features module.
drush_features_export in ./features.drush.inc
Create a feature module based on a list of components.
features_export_form in ./features.admin.inc
Form callback for features export form. Acts as a router based on the form_state.
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.

... See full list

File

./features.module, line 399
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);
  }
}