You are here

function finder_i18nstrings_multilingual_instructions in Finder 6

Same name and namespace in other branches
  1. 7 modules/finder_i18nstrings/finder_i18nstrings.module \finder_i18nstrings_multilingual_instructions()

Get the form element which adds multilingual instructions to a form.

2 calls to finder_i18nstrings_multilingual_instructions()
finder_i18nstrings_form_finder_admin_edit_alter in modules/finder_i18nstrings/finder_i18nstrings.module
Implementation of hook_form_FORM_ID_alter().
finder_i18nstrings_form_finder_admin_element_edit_alter in modules/finder_i18nstrings/finder_i18nstrings.module
Implementation of hook_form_FORM_ID_alter().

File

modules/finder_i18nstrings/finder_i18nstrings.module, line 51
The finder string translation module.

Code

function finder_i18nstrings_multilingual_instructions() {
  $i18nstrings_element = array(
    '#id' => 'multilingual-instructions',
    '#title' => t('Multilingual instructions'),
    '#required' => TRUE,
  );
  $i18nstrings_value = t("Enter values in your site's default language and then use the\n      !translate_link to translate.", array(
    '!translate_link' => l(t('Translate interface'), 'admin/build/translate'),
  ));
  return array(
    '#type' => 'markup',
    '#value' => theme('form_element', $i18nstrings_element, $i18nstrings_value),
    '#weight' => 2,
  );
}