function _backup_migrate_array_to_ini

cis7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')
cle7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')
elmsmedia7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')
icor7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')
meedjum_blog7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')
mooc7 backup_migrate.module _backup_migrate_array_to_ini($data, $prefix = '')

Convert an associated array to an ini format string.

1 call to _backup_migrate_array_to_ini()
backup_migrate_destination::create_info_file in sites/all/modules/ulmus/backup_migrate/includes/destinations.inc
Create an ini file and write the meta data.

File

sites/all/modules/ulmus/backup_migrate/backup_migrate.module, line 1045
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)

Code

function _backup_migrate_array_to_ini($data, $prefix = '') {
  $content = "";
  foreach ($data as $key => $val) {
    if ($prefix) {
      $key = $prefix . '[' . $key . ']';
    }
    if (is_array($val)) {
      $content .= _backup_migrate_array_to_ini($val, $key);
    }
    else {
      $content .= $key . " = \"" . $val . "\"\n";
    }
  }
  return $content;
}