function og_action_info in Organic groups 7.2
Same name and namespace in other branches
- 5.8 og_workflow_ng.inc \og_action_info()
- 5 og_workflow_ng.inc \og_action_info()
- 5.3 og_workflow_ng.inc \og_action_info()
Implements hook_action_info().
See also
views_bulk_operations_action_info()
File
- ./
og.module, line 3612 - Enable users to create and manage groups with roles and permissions.
Code
function og_action_info() {
$actions = array();
$files = og_operations_load_action_includes();
foreach ($files as $filename) {
$action_info_fn = 'og_' . str_replace('.', '_', basename($filename, '.inc')) . '_info';
$action_info = call_user_func($action_info_fn);
if (is_array($action_info)) {
$actions += $action_info;
}
}
return $actions;
}