function replicate_ui_load_action_includes in Replicate UI 7
Loads the replicate actions placed in their own include files
Return value
An array of containing filenames of the included actions.
1 call to replicate_ui_load_action_includes()
- replicate_ui_action_info in ./
replicate_ui.module - Implements hook_action_info().
File
- ./
replicate_ui.module, line 258 - Provide a user interface for the Replicate API.
Code
function replicate_ui_load_action_includes() {
static $loaded = FALSE;
// The list of replicate actions is fairly static, so it's hardcoded for better
// performance (hitting the filesystem with file_scan_directory(), and then
// caching the result has its cost).
$path = drupal_get_path('module', 'replicate_ui') . '/actions/';
$files = array(
'replicate.action.inc',
);
if (!$loaded) {
foreach ($files as $file) {
include_once $path . $file;
}
$loaded = TRUE;
}
return $files;
}