function backup_migrate_destination::get_action_links

cis7 destinations.inc backup_migrate_destination::get_action_links()
cle7 destinations.inc backup_migrate_destination::get_action_links()
elmsmedia7 destinations.inc backup_migrate_destination::get_action_links()
icor7 destinations.inc backup_migrate_destination::get_action_links()
meedjum_blog7 destinations.inc backup_migrate_destination::get_action_links()
mooc7 destinations.inc backup_migrate_destination::get_action_links()

Get the action links for a destination.

Overrides backup_migrate_item::get_action_links

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.inc, line 850
All of the destination handling code needed for Backup and Migrate.

Class

backup_migrate_destination
A base class for creating destinations.

Code

function get_action_links() {
  $out = parent::get_action_links();
  $item_id = $this->get_id();

  // Don't display the download/delete/restore ops if they are not available for this destination.
  if ($this->op('list files') && user_access("access backup files")) {
    $out = array('list files' => l(t("list files"), BACKUP_MIGRATE_MENU_PATH . "/$this->type_name/list/files/" . $item_id)) + $out;
  }
  if (!$this->op('configure') || !user_access('administer backup and migrate')) {
    unset($out['edit']);
  }
  return $out;
}
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.