Drupal token
Jump to navigation
Jump to search
- token actions module
- placeholder tokens
- home-> administer-> site building-> triggers
- pathauto is classic example of how you use token
consume tokens inside module
- consuming module
- token_replace( $orig_version_of_text, $type = 'global', $object = NULL);
- $type specifies scope
- diferent tokens can be parsed out of different objects, like a namespace.
- token_replace_multiple(
- get global tokens, or node tokens
- provide tokens
- hook_token_list()- here's everything that my module will provide to you
- hook_token_values() -
- should default to blank strings, or else the end user will see the token