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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.