You are here

function configuration_invoke in Configuration Management 7

Invoke a component callback.

6 calls to configuration_invoke()
ConfigurationUITest::testMigrateExportUI in tests/configuration.test
Tests the "Migrate Export" page.
configuration_export_render_hooks in ./configuration.export.inc
Generate an array of hooks and their raw code.
configuration_get_normal in ./configuration.export.inc
Get normal objects for a given module/component pair.
configuration_migrate_form in ./configuration.admin.inc
Menu Callback Form.
configuration_notracking_form in ./configuration.admin.inc
Menu Callback Form.

... See full list

File

./configuration.module, line 500
Module file for the configuration module, which enables the capture and management of configuration in Drupal.

Code

function configuration_invoke($component, $callback) {
  $args = func_get_args();
  unset($args[0], $args[1]);

  // Append the component name to the arguments.
  $args[] = $component;
  if ($function = configuration_hook($component, $callback)) {
    return call_user_func_array($function, $args);
  }
}