You are here

public function EntityDefaultI18nStringController::hook_string_info in Entity API 7

Implements hook_i18n_string_info() via entity_i18n_string_info().

File

./entity.i18n.inc, line 117
Internationalization (i18n) integration.

Class

EntityDefaultI18nStringController
Default controller handling i18n integration.

Code

public function hook_string_info() {
  $list = system_list('module_enabled');
  $info = $list[$this->textgroup]->info;
  $groups[$this->textgroup] = array(
    'title' => $info['name'],
    'description' => !empty($info['description']) ? $info['description'] : NULL,
    'format' => FALSE,
    'list' => TRUE,
  );
  return $groups;
}