function backup_migrate_item::get_action_links in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/crud.inc \backup_migrate_item::get_action_links()
- 8.3 includes/crud.inc \backup_migrate_item::get_action_links()
- 6.2 includes/crud.inc \backup_migrate_item::get_action_links()
- 7.3 includes/crud.inc \backup_migrate_item::get_action_links()
- 7.2 includes/crud.inc \backup_migrate_item::get_action_links()
Get the action links for a destination.
2 calls to backup_migrate_item::get_action_links()
- backup_migrate_item::get_actions in includes/
crud.inc - Get the rendered action links for a destination.
- backup_migrate_location::get_action_links in includes/
locations.inc - Get the action links for a location.
1 method overrides backup_migrate_item::get_action_links()
- backup_migrate_location::get_action_links in includes/
locations.inc - Get the action links for a location.
File
- includes/
crud.inc, line 667 - CRUD functions for backup and migrate types (schedules, profiles etc.).
Class
- backup_migrate_item
- A base class for items which can be stored in the database, listed, edited, deleted etc.
Code
function get_action_links() {
$out = array();
$item_id = $this
->get_id();
$path = $this
->get_settings_path();
if (@$this->storage == BACKUP_MIGRATE_STORAGE_DB || @$this->storage == BACKUP_MIGRATE_STORAGE_OVERRIDEN) {
$out['edit'] = l(t("edit"), $path . "/edit/{$item_id}");
}
else {
if (@$this->storage == BACKUP_MIGRATE_STORAGE_NONE) {
$out['edit'] = l(t("override"), $path . "/edit/{$item_id}");
}
}
if (@$this->storage == BACKUP_MIGRATE_STORAGE_DB) {
$out['delete'] = l(t("delete"), $path . "/delete/{$item_id}");
}
else {
if (@$this->storage == BACKUP_MIGRATE_STORAGE_OVERRIDEN) {
$out['delete'] = l(t("revert"), $path . "/delete/{$item_id}");
}
}
$out['export'] = l(t("export"), $path . "/export/{$item_id}");
return $out;
}