Search for token

  1. Search 9.5.x for token
  2. Search 8.9.x for token
  3. Search 10.3.x for token
  4. Search 11.x for token
  5. Other projects
Title Object type File name Summary
SystemValidTokenTest class modules/system/system.test Test case for drupal_valid_token().
SystemValidTokenTest::$assertErrors property modules/system/system.test Flag to indicate whether PHP error reportings should be asserted.
SystemValidTokenTest::errorHandler function modules/system/system.test Overrides DrupalTestCase::errorHandler().
SystemValidTokenTest::getInfo function modules/system/system.test
SystemValidTokenTest::testTokenValidation function modules/system/system.test Tests invalid invocations of drupal_valid_token() that must return FALSE.
system_tokens function modules/system/system.tokens.inc Implements hook_tokens().
system_token_info function modules/system/system.tokens.inc Implements hook_token_info().
taxonomy.tokens.inc file modules/taxonomy/taxonomy.tokens.inc Builds placeholder replacement tokens for taxonomy terms and vocabularies.
TaxonomyTokenReplaceTestCase class modules/taxonomy/taxonomy.test Test taxonomy token replacement in strings.
TaxonomyTokenReplaceTestCase::$admin_user property modules/taxonomy/taxonomy.test
TaxonomyTokenReplaceTestCase::$instance property modules/taxonomy/taxonomy.test
TaxonomyTokenReplaceTestCase::$langcode property modules/taxonomy/taxonomy.test
TaxonomyTokenReplaceTestCase::$vocabulary property modules/taxonomy/taxonomy.test
TaxonomyTokenReplaceTestCase::getInfo function modules/taxonomy/taxonomy.test
TaxonomyTokenReplaceTestCase::setUp function modules/taxonomy/taxonomy.test Sets up a Drupal site for running functional and integration tests.
TaxonomyTokenReplaceTestCase::testTaxonomyTokenReplacement function modules/taxonomy/taxonomy.test Creates some terms and a node, then tests the tokens generated from them.
taxonomy_tokens function modules/taxonomy/taxonomy.tokens.inc Implements hook_tokens().
taxonomy_token_info function modules/taxonomy/taxonomy.tokens.inc Implements hook_token_info().
token.inc file includes/token.inc Drupal placeholder/token replacement system.
TokenReplaceTestCase class modules/system/system.test Test token replacement in strings.
TokenReplaceTestCase::getInfo function modules/system/system.test
TokenReplaceTestCase::testSystemDateTokenReplacement function modules/system/system.test Tests the generation of all system date tokens.
TokenReplaceTestCase::testSystemSiteTokenReplacement function modules/system/system.test Tests the generation of all system site information tokens.
TokenReplaceTestCase::testSystemTokenRecognition function modules/system/system.test Test whether token-replacement works in various contexts.
TokenReplaceTestCase::testTokenReplacement function modules/system/system.test Creates a user and a node, then tests the tokens generated from them.
TokenScanTest class modules/system/system.test Test token replacement in strings.
TokenScanTest::getInfo function modules/system/system.test
TokenScanTest::testTokenScan function modules/system/system.test Scans dummy text, then tests the output.
token_find_with_prefix function includes/token.inc Returns a list of tokens that begin with a specific prefix.
token_generate function includes/token.inc Generates replacement values for a list of tokens.
token_info function includes/token.inc Returns metadata describing supported tokens.
token_replace function includes/token.inc Replaces all tokens in a given string with appropriate values.
token_scan function includes/token.inc Builds a list of all token-like patterns that appear in the text.
TriggerActionTestCase::assertSystemEmailTokenReplacement function modules/trigger/trigger.test Asserts correct token replacement for the given trigger and account.
TriggerActionTestCase::assertSystemMessageAndEmailTokenReplacement function modules/trigger/trigger.test Asserts correct token replacement in both system message and email.
TriggerActionTestCase::assertSystemMessageTokenReplacement function modules/trigger/trigger.test Asserts correct token replacement for the given trigger and account.
TriggerActionTestCase::generateMessageWithTokens function modules/trigger/trigger.test Creates a message with tokens.
TriggerActionTestCase::generateTokenExpandedComparison function modules/trigger/trigger.test Generates a comparison message to match the pre-token-replaced message.
TriggerUserTokenTestCase class modules/trigger/trigger.test Tests token substitution in trigger actions.
TriggerUserTokenTestCase::getInfo function modules/trigger/trigger.test
TriggerUserTokenTestCase::testUserTriggerTokenReplacement function modules/trigger/trigger.test Tests a variety of token replacements in actions.
user.tokens.inc file modules/user/user.tokens.inc Builds placeholder replacement tokens for user-related data.
UserTokenReplaceTestCase class modules/user/user.test Test user token replacement in strings.
UserTokenReplaceTestCase::getInfo function modules/user/user.test
UserTokenReplaceTestCase::testAnonymousUserTokenReplacement function modules/user/user.test Uses an anonymous user, then tests the tokens generated from it.
UserTokenReplaceTestCase::testUserTokenReplacement function modules/user/user.test Creates a user, then tests the tokens generated from it.
UserUpgradePathNoPasswordTokenTestCase class modules/simpletest/tests/upgrade/upgrade.user.test Upgrade test for user.module (password token not involved).
UserUpgradePathNoPasswordTokenTestCase::getInfo function modules/simpletest/tests/upgrade/upgrade.user.test
UserUpgradePathNoPasswordTokenTestCase::setUp function modules/simpletest/tests/upgrade/upgrade.user.test Overrides DrupalWebTestCase::setUp() for upgrade testing.
UserUpgradePathNoPasswordTokenTestCase::testUserUpgrade function modules/simpletest/tests/upgrade/upgrade.user.test Test a successful upgrade.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.