You are here

function og_operations_load_action_includes in Organic groups 7.2

Loads the VBO actions placed in their own include files.

Return value

An array of containing filenames of the included actions.

See also

views_bulk_operations_load_action_includes()

1 call to og_operations_load_action_includes()
og_action_info in ./og.module
Implements hook_action_info().

File

./og.module, line 3634
Enable users to create and manage groups with roles and permissions.

Code

function og_operations_load_action_includes() {
  static $loaded = FALSE;
  $path = drupal_get_path('module', 'og') . '/includes/actions/';
  $files = array(
    'user_roles.action.inc',
    'set_state.action.inc',
    'membership_delete.action.inc',
  );
  if (!$loaded) {
    foreach ($files as $file) {
      include_once $path . $file;
    }
    $loaded = TRUE;
  }
  return $files;
}