You are here

function safeword_token_info in Safeword 7

Same name and namespace in other branches
  1. 8 safeword.tokens.inc \safeword_token_info()

Implements hook_token_info().

File

./safeword.tokens.inc, line 6

Code

function safeword_token_info() {

  // Text module provides three different text field types.
  $info['types']['safeword-field'] = array(
    'name' => t('Safeword fields'),
    'description' => t('Tokens related to Safeword field instances.'),
    'needs-data' => 'safeword-field',
    'field' => TRUE,
    'module' => 'safeword',
  );
  $info['tokens']['safeword-field']['human'] = array(
    'name' => t('Human text'),
    'description' => t('The Safeword field human-readable text.'),
  );
  $info['tokens']['safeword-field']['machine'] = array(
    'name' => t('Machine text'),
    'description' => t('The Safeword field machine-safe text.'),
  );
  return $info;
}