You are here

function backup_migrate_destination::get_action_links in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::get_action_links()
  2. 8.3 includes/destinations.inc \backup_migrate_destination::get_action_links()
  3. 6.2 includes/destinations.inc \backup_migrate_destination::get_action_links()
  4. 7.3 includes/destinations.inc \backup_migrate_destination::get_action_links()
  5. 7.2 includes/destinations.inc \backup_migrate_destination::get_action_links()

Get the action links for a destination.

Overrides backup_migrate_location::get_action_links

File

includes/destinations.inc, line 915

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"), $this
        ->get_settings_path() . '/list/files/' . $item_id),
    ) + $out;
  }
  if (!$this
    ->op('configure') || !user_access('administer backup and migrate')) {
    unset($out['edit']);
  }
  return $out;
}