You are here

function configuration_actions in Configuration Management 6

Return info on registered actions from the site modules

Return value

An array of information on registered actions

File

./configuration.module, line 1327
Provide a unified method for defining site configurations abstracted from their data format. Various data formats should be supported via a plugin architecture such as XML, YAML, JSON, PHP

Code

function configuration_actions() {
  static $actions = null;
  if (!is_null($actions)) {
    return $actions;
  }
  foreach (module_implements('configuration_actions') as $module) {
    $module_actions = (array) module_invoke($module, 'configuration_actions');

    // Add to the actions array
    foreach ($module_actions as $action => &$data) {
      $data['module'] = $module;
      $actions[$action] =& $data;
    }
  }
  return $actions;
}