function og_migrate_get_accessible_plugins in Organic groups 7
Get all the plugins after executing their access callback functions.
Return value
Array with plugins. If no plugins are valid, return empty array.
3 calls to og_migrate_get_accessible_plugins()
- og_migrate_admin in og_migrate/
og_migrate.module - Migration overview.
- og_migrate_get_plugins_dependencies in og_migrate/
og_migrate.module - Get a list of plugin names by dependencies.
- og_migrate_is_pending in og_migrate/
og_migrate.module - Return TRUE if there are pending migration plugins.
File
- og_migrate/
og_migrate.module, line 245 - Migrate and upgrade Organic groups data.
Code
function og_migrate_get_accessible_plugins() {
$plugins = array();
foreach (og_migrate_get_plugins() as $name => $plugin) {
if ($plugin['access callback'] === TRUE || call_user_func($plugin['access callback'])) {
$plugins[$name] = $plugin;
}
}
return $plugins;
}