You are here

function habitat_token_info in Habitat 7

Implements hook_token_info().

File

./habitat.tokens.inc, line 11
Provide a Habitat token "[site:habitat]".

Code

function habitat_token_info() {

  // Add our token to the "site" token list.
  $info['tokens']['site']['habitat'] = array(
    'name' => t("Current habitat"),
    'description' => t('The name of the current habitat defined in settings.php.'),
  );
  return $info;
}