function backup_migrate_filters_settings_form_set_parents

cis7 filters.inc backup_migrate_filters_settings_form_set_parents($form)
cle7 filters.inc backup_migrate_filters_settings_form_set_parents($form)
elmsmedia7 filters.inc backup_migrate_filters_settings_form_set_parents($form)
icor7 filters.inc backup_migrate_filters_settings_form_set_parents($form)
meedjum_blog7 filters.inc backup_migrate_filters_settings_form_set_parents($form)
mooc7 filters.inc backup_migrate_filters_settings_form_set_parents($form)

Add a form parent to the filter settings so that the filter values are saved in the right table.

1 call to backup_migrate_filters_settings_form_set_parents()
backup_migrate_filters_settings_form in sites/all/modules/ulmus/backup_migrate/includes/filters.inc
Get the backup settings for all of the filters.

File

sites/all/modules/ulmus/backup_migrate/includes/filters.inc, line 136
All of the filter handling code needed for Backup and Migrate.

Code

function backup_migrate_filters_settings_form_set_parents($form) {
  foreach (element_children($form) as $key) {
    if (!isset($form[$key]['#parents'])) {
      $form[$key]['#parents'] = array('filters', $key);
      $form[$key] = backup_migrate_filters_settings_form_set_parents($form[$key]);
    }
  }
  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.