You are here

function text_mobile_codes_token_info_alter_alter in Mobile Codes 7.2

Implements hook_mobile_codes_token_info_alter_alter() on behalf of text.module.

File

includes/text.inc, line 21
Text module integration.

Code

function text_mobile_codes_token_info_alter_alter(&$data) {
  if (isset($data['tokens']['text-field-value'])) {
    $data['tokens']['text-field-value']['mobile-codes'] = array(
      'name' => t('Mobile Code'),
      'description' => t('The text field value as a Mobile Code'),
      'type' => 'mobile-codes',
    );
  }
}