You are here

public function i18n_string_textgroup_default::load_strings in Internationalization 7

Load multiple strings.

Return value

array List of strings indexed by full string name.

File

i18n_string/i18n_string.inc, line 634
API for internationalization strings

Class

i18n_string_textgroup_default
Textgroup handler for i18n_string API

Code

public function load_strings($conditions = array()) {

  // Add textgroup condition and load all
  $conditions['textgroup'] = $this->textgroup;
  $list = array();
  foreach (i18n_string_load_multiple($conditions) as $string) {
    $list[$string
      ->get_name()] = $string;
    $this
      ->cache_set($string->context, $string);
  }
  return $list;
}