You are here

function _agreement_get_translated_messages in Agreement 7.2

Get all translated string constants.

Return value

array An array keyed by the "constant" name and value as the translated string.

1 call to _agreement_get_translated_messages()
agreement_get_translated_message in ./agreement.module
Get agreement translated string constants.

File

./agreement.module, line 576
Agreement module code - agreement.module.

Code

function _agreement_get_translated_messages() {
  $agreement_constants =& drupal_static(__FUNCTION__);
  if (!isset($agreement_constants)) {
    $agreement_constants = array(
      'AGREEMENT_PAGE_URL' => 'agreement',
      'AGREEMENT_PAGE_TITLE' => t('Our Agreement'),
      'AGREEMENT_MESSAGE_SUCCESS' => t('Thank you for accepting our agreement.'),
      'AGREEMENT_MESSAGE_FAILURE' => t('You must accept our agreement to continue.'),
      'AGREEMENT_MESSAGE_REVOKED' => t('You successfully revoked your acceptance of our agreement.'),
      'AGREEMENT_CHECKBOX_TEXT' => t('I agree.'),
      'AGREEMENT_SUBMIT_TEXT' => t('Submit'),
      'AGREEMENT_FORMAT' => filter_default_format(),
    );
  }
  return $agreement_constants;
}