function backup_migrate_get_profiles in Backup and Migrate 5.2
Same name and namespace in other branches
- 8.2 includes/profiles.inc \backup_migrate_get_profiles()
- 8.3 includes/profiles.inc \backup_migrate_get_profiles()
- 6.3 includes/profiles.inc \backup_migrate_get_profiles()
- 6.2 includes/profiles.inc \backup_migrate_get_profiles()
- 7.3 includes/profiles.inc \backup_migrate_get_profiles()
- 7.2 includes/profiles.inc \backup_migrate_get_profiles()
Get all the available backup profiles.
3 calls to backup_migrate_get_profiles()
- backup_migrate_get_profile in includes/
profiles.inc - Get the profile info for the profile with the given ID, or NULL if none exists.
- backup_migrate_ui_profile_display_profiles in includes/
profiles.inc - List the the available profiles in the UI.
- _backup_migrate_get_profile_form_item_options in includes/
profiles.inc - Get the available profiles as an options array for a form item.
File
- includes/
profiles.inc, line 12 - All of the settings profiles handling code for Backup and Migrate.
Code
function backup_migrate_get_profiles() {
static $profiles = NULL;
// Get the list of profiles and cache them locally.
if ($profiles === NULL) {
$profiles = array();
$all_profiles = module_invoke_all('backup_migrate_profiles');
// Reindex since module_invoke_all stomps on numerical indices (thanks to array_merge).
foreach ($all_profiles as $profile) {
$profiles[$profile['profile_id']] = $profile;
}
}
return $profiles;
}