You are here

function i18n_object_wrapper::get_translate_access in Internationalization 7

Menu access callback for mixed translation tab

File

./i18n_object.inc, line 140
i18n Object Class

Class

i18n_object_wrapper
Object wrapper

Code

function get_translate_access() {
  switch ($this
    ->get_translate_mode()) {
    case I18N_MODE_TRANSLATE:
      return $this
        ->translate_access();
    case I18N_MODE_LOCALIZE:
      return $this
        ->localize_access();
    default:
      return FALSE;
  }
}