You are here

public function i18n_translation_set::get_operations in Internationalization 7

Get operations as renderable links

File

i18n_translation/i18n_translation.inc, line 247
Internationalization (i18n) module - Translation set

Class

i18n_translation_set
@file Internationalization (i18n) module - Translation set

Code

public function get_operations() {
  $destination = drupal_get_destination();
  $operations = array();
  if ($path = $this
    ->get_edit_path()) {
    $operations['edit'] = array(
      'title' => t('edit'),
      'href' => $path,
      'query' => $destination,
    );
  }
  if ($path = $this
    ->get_delete_path()) {
    $operations['delete'] = array(
      'title' => t('delete'),
      'href' => $path,
      'query' => $destination,
    );
  }
  return $operations;
}