function accessibility_accessibility_get_test_translation

cis7 accessibility.module accessibility_accessibility_get_test_translation($test)
cle7 accessibility.module accessibility_accessibility_get_test_translation($test)
elmsmedia7 accessibility.module accessibility_accessibility_get_test_translation($test)
icor7 accessibility.module accessibility_accessibility_get_test_translation($test)
meedjum_blog7 accessibility.module accessibility_accessibility_get_test_translation($test)
mooc7 accessibility.module accessibility_accessibility_get_test_translation($test)

Implements hook_accessibility_get_test_translation().

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 699

Code

function accessibility_accessibility_get_test_translation($test) {
  $strings = &drupal_static('_locale_import_one_string:strings', array());
  $language = language_default();
  if (!count($strings)) {
    require_once ('includes/locale.inc');
    $file = new stdClass();
    $file->uri = drupal_get_path('module', 'accessibility') . '/po/' . $language->language . '.po';
    _locale_import_read_po('mem-store', $file);
  }
  return isset($strings[$test][$test]) ? $strings[$test][$test] : array(
    'title' => $test,
    'body' => '',
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.