You are here

function replicate_ui_action_info in Replicate UI 7

Implements hook_action_info().

Registers custom replicate actions as Drupal actions.

File

./replicate_ui.module, line 239
Provide a user interface for the Replicate API.

Code

function replicate_ui_action_info() {
  $actions = array();
  $files = replicate_ui_load_action_includes();
  foreach ($files as $filename) {
    $action_info_fn = 'replicate_ui_' . str_replace('.', '_', basename($filename, '.inc')) . '_info';
    $action_info = call_user_func($action_info_fn);
    if (is_array($action_info)) {
      $actions += $action_info;
    }
  }
  return $actions;
}