You are here

function workbench_moderation_i18n_string_list in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 workbench_moderation.module \workbench_moderation_i18n_string_list()

Implements hook_i18n_string_list().

File

./workbench_moderation.module, line 1443
Content moderation for Workbench.

Code

function workbench_moderation_i18n_string_list($group) {
  $strings = array();
  if ($group == 'workbench_moderation') {
    foreach (workbench_moderation_states() as $state) {
      $strings['workbench_moderation']['moderation_state'][$state->name]['label'] = $state->label;
      $strings['workbench_moderation']['moderation_state'][$state->name]['description'] = $state->description;
    }
  }
  return $strings;
}