You are here

function _backup_migrate_profile_get_links in Backup and Migrate 5.2

Get the action links for a profile.

1 call to _backup_migrate_profile_get_links()
backup_migrate_ui_profile_display_profiles in includes/profiles.inc
List the the available profiles in the UI.

File

includes/profiles.inc, line 356
All of the settings profiles handling code for Backup and Migrate.

Code

function _backup_migrate_profile_get_links($profile_id) {
  $out = array();
  if ($profile = backup_migrate_get_profile($profile_id)) {
    if ($profile['db']) {
      $out[] = l(t("Configure..."), "admin/content/backup_migrate/profile/configure/" . $profile_id);
      $out[] = l(t("Delete..."), "admin/content/backup_migrate/profile/delete/" . $profile_id);
    }
  }
  return $out;
}