function backup_migrate_get_profiles in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/profiles.inc \backup_migrate_get_profiles()
- 5.2 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_drush_profiles in includes/
backup_migrate.drush.inc - Get a list of available 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_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 14
Code
function backup_migrate_get_profiles() {
backup_migrate_include('filters');
static $profiles = NULL;
// Get the list of profiles and cache them locally.
if ($profiles === NULL) {
$profiles = backup_migrate_crud_get_items('profile');
}
return $profiles;
}