You are here

function backup_migrate_backup_migrate_profiles in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 includes/profiles.inc \backup_migrate_backup_migrate_profiles()
  2. 8.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles()
  3. 6.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles()
  4. 6.2 includes/profiles.inc \backup_migrate_backup_migrate_profiles()
  5. 7.3 includes/profiles.inc \backup_migrate_backup_migrate_profiles()
  6. 7.2 includes/profiles.inc \backup_migrate_backup_migrate_profiles()

Implementation of hook_backup_migrate_profiles().

Get the backup profiles stored in the db.

File

includes/profiles.inc, line 40
All of the settings profiles handling code for Backup and Migrate.

Code

function backup_migrate_backup_migrate_profiles() {

  // Get the saved profiless
  $result = db_query('SELECT * FROM {backup_migrate_profiles}');
  while ($profile = db_fetch_array($result)) {
    $profile['db'] = TRUE;
    $profile['exclude_tables'] = unserialize($profile['exclude_tables']);
    $profile['nodata_tables'] = unserialize($profile['nodata_tables']);
    $out[$profile['profile_id']] = $profile;
  }
  return $out;
}