You are here

function backup_migrate_schedule::get_destination_name in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/schedules.inc \backup_migrate_schedule::get_destination_name()
  2. 6.3 includes/schedules.inc \backup_migrate_schedule::get_destination_name()
  3. 6.2 includes/schedules.inc \backup_migrate_schedule::get_destination_name()
  4. 7.3 includes/schedules.inc \backup_migrate_schedule::get_destination_name()
  5. 7.2 includes/schedules.inc \backup_migrate_schedule::get_destination_name()

Get the name of the destination.

File

includes/schedules.inc, line 262
All of the schedule handling code needed for Backup and Migrate.

Class

backup_migrate_schedule
A schedule class for crud operations.

Code

function get_destination_name() {
  if ($destinations = $this
    ->get_destinations()) {
    $out = array();
    foreach ((array) $destinations as $destination) {
      $out[] = check_plain($destination
        ->get_name());
    }
    return implode(', ', $out);
  }
  return '<div class="row-error">' . t("Missing") . '</div>';
}