You are here

function flag_lists_token_info in Flag Lists 7

Same name and namespace in other branches
  1. 8 flag_lists.tokens.inc \flag_lists_token_info()
  2. 7.3 flag_lists.module \flag_lists_token_info()
  3. 4.0.x flag_lists.tokens.inc \flag_lists_token_info()

Implements hook_token_info().

File

./flag_lists.module, line 1628
The Flag Lists module.

Code

function flag_lists_token_info() {
  $type = array(
    'name' => t('Flag lists'),
    'description' => t('Tokens related to flag lists.'),
    'needs-data' => 'flag_lists',
  );
  $flag_lists['term'] = array(
    'name' => t("Term"),
    'description' => t("The terminology used to name the lists, such as list, wishlist, favorites, etc."),
  );
  $flag_lists['title'] = array(
    'name' => t("Title"),
    'description' => t("The title of the list."),
  );
  return array(
    'types' => array(
      'flag_lists' => $type,
    ),
    'tokens' => array(
      'flag_lists' => $flag_lists,
    ),
  );
}