function backup_migrate_get_profiles in Backup and Migrate 7.3
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()
- 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.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.
1 string reference to 'backup_migrate_get_profiles'
- backup_migrate_schedule::run in includes/
schedules.inc - Run the actual schedule.
File
- includes/
profiles.inc, line 29
Code
function backup_migrate_get_profiles() {
require_once dirname(__FILE__) . '/filters.inc';
$profiles =& drupal_static('backup_migrate_get_profiles', NULL);
// Get the list of profiles and cache them locally.
if ($profiles === NULL) {
$profiles = backup_migrate_crud_get_items('profile');
}
return $profiles;
}