function _backup_migrate_ui_backup_settings_form

cis7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)
cle7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)
elmsmedia7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)
icor7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)
meedjum_blog7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)
mooc7 profiles.inc _backup_migrate_ui_backup_settings_form($profile)

Get a form to configure the profile.

2 calls to _backup_migrate_ui_backup_settings_form()
backup_migrate_profile::edit_form in sites/all/modules/ulmus/backup_migrate/includes/profiles.inc
Get the edit form.
backup_migrate_ui_manual_backup_form in sites/all/modules/ulmus/backup_migrate/backup_migrate.module
The backup/export form.

File

sites/all/modules/ulmus/backup_migrate/includes/profiles.inc, line 73
All of the settings profiles handling code for Backup and Migrate.

Code

function _backup_migrate_ui_backup_settings_form($profile) {
  drupal_add_js(array('backup_migrate' => array('checkboxLinkText' => t('View as checkboxes'))), array('type' => 'setting'));
  drupal_add_js(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.js', array('type' => 'file', 'scope' => 'footer'));
  drupal_add_css(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.css');

  backup_migrate_include('files', 'destinations', 'filters');

  $form = array();

  $form['file'] = array(
    "#type" => "fieldset",
    "#title" => t("Backup File"),
    "#collapsible" => TRUE,
    "#collapsed" => FALSE,
    "#tree" => FALSE,
  );
  $form['file']['filename'] = array(
    "#type" => "textfield",
    "#title" => t("Backup file name"),
    "#default_value" => $profile->filename,
  );
  if (module_exists('token')) {
    $form['file']['filename']['#description'] = t('You can use tokens in the file name.');

    $form['file']['token_help'] = array(
      '#title' => t('Replacement patterns'),
      '#type' => 'fieldset',
      '#collapsible' => TRUE,
      '#collapsed' => TRUE,
    );
    $form['file']['token_help']['help'] = array(
      '#theme' => 'token_tree',
      '#token_types' => array('current-date', 'site'),
      '#global_types' => FALSE,
    );
  }

  $form['file']['append_timestamp'] = array(
    "#type" => "checkbox",
    "#title" => t("Append a timestamp."),
    "#default_value" => $profile->append_timestamp,
  );
  $form['file']['timestamp_format'] = array(
    "#type" => "textfield",
    "#title" => t("Timestamp format"),
    "#default_value" => $profile->timestamp_format,
    "#description" => t('Should be a PHP <a href="!url">date()</a> format string.', array('!url' => 'http://www.php.net/date')),
  );

  $form['advanced'] = array('#weight' => 10);
  $form = array_merge_recursive($form, backup_migrate_filters_settings_form($profile->filters, 'backup'));

  // Add the advanced fieldset if there are any fields in it.
  if ($form['advanced']) {
    $form['advanced']['#type'] = 'fieldset';
    $form['advanced']['#title'] = t('Advanced Options');
    $form['advanced']['#collapsed'] = true;
    $form['advanced']['#collapsible'] = true;
  }

  $form['#validate'][] = '_backup_migrate_ui_backup_settings_form_validate';
  $form['#submit'][] = '_backup_migrate_ui_backup_settings_form_submit';

  return $form;
}
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.