You are here

function backup_migrate_get_profiles in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/profiles.inc \backup_migrate_get_profiles()
  2. 8.3 includes/profiles.inc \backup_migrate_get_profiles()
  3. 5.2 includes/profiles.inc \backup_migrate_get_profiles()
  4. 6.3 includes/profiles.inc \backup_migrate_get_profiles()
  5. 7.3 includes/profiles.inc \backup_migrate_get_profiles()
  6. 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;
}