function backup_migrate_filter_backup_restore::_get_destination_types

cis7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()
cle7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()
elmsmedia7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()
icor7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()
meedjum_blog7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()
mooc7 filters.backup_restore.inc backup_migrate_filter_backup_restore::_get_destination_types()

Get a list of dummy destinations representing each of the available destination types.

6 calls to backup_migrate_filter_backup_restore::_get_destination_types()
backup_migrate_filter_backup_restore::backup_settings_form_submit in sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc
Submit the settings form. Any values returned will be saved.
backup_migrate_filter_backup_restore::backup_settings_form_validate in sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc
Get the form for the settings for this filter.
backup_migrate_filter_backup_restore::destinations in sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc
Get the default destinations for this filter.
backup_migrate_filter_backup_restore::file_types in sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc
Get the file types supported by this destination.
backup_migrate_filter_backup_restore::restore_settings_default in sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc
Get the default restore settings for this filter.

... See full list

File

sites/all/modules/ulmus/backup_migrate/includes/filters.backup_restore.inc, line 152
This filter performs tha actual backup or restore operation. Not technically a filter per-se, but it does need to fit in the call chain.

Class

backup_migrate_filter_backup_restore
A filter backup or migrate the specified source.

Code

function _get_destination_types() {
  static backup_migrate_include('destinations');
  static $destinations = NULL;
  if (!is_array($destinations)) {
    $destinations = array();
    $types = backup_migrate_get_destination_types();
    // If no (valid) node type has been provided, display a node type overview.
    foreach ($types as $key => $type) {
      // Include the necessary file if specified by the type.
      if (!empty($type['file'])) {
        require_once './' . $type['file'];
      }
      $destinations[] = new $type['class'](array());
    }
  }
  return $destinations;
}
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.