![]() * modules may already have defined some field tokens. ![]() Key value pairs MUST be specified as safekeySome readable option. Go to and download the Chaos tool suite (Ctools) module. These pairs consist of a machine readable key and a plain language value separated by a '' - you can find it by holding shift while pressing the backslash key '\' key on most keyboards. * Use hook_token_info_alter() rather than hook_token_info() as other Download the Webform, CTools, Views, and Token Modules Go to and download the Webform module. 'description' => t('Tokens related to current top level page node'), The webform view created in views shows the safekey data of a select option field and Id like it to show the 'some readable option' data. * An associative array of available tokens and token types. 'safekeySome readable option' seems to output the readable option regardless of using emailvalues, valuekey or emailkey. * httx:///api/drupal//function/hook_token_info/7 * Provide information about current page top level page node Page_node_ name = Page node tokensĭescription = provide top level page-node tokens ![]() * Install, update, and uninstall functions for page_node. Creating Drupal 9 webforms can be as simple, detailed, and accessible as you need. Increase module weight so that page_node_token_field_display_alter() is executed after token module /** Updated on Novemby InMotion Hosting Contributor 3 Minutes, 26 Seconds to Read The Webform module has been revitalized for the ninth Drupal edition. This allowed me to use my top level email field by entering. This is needed if you are using the email module.Īfter installing this module you will see a "Page Node" family of dynamic tokens when you are editing a form component. ![]() I had to also create a hook_field_display_alter() function to take care of fields being displayed without a default_token_formatter. It's similar to the code in the Token module. The following module code exposes the current top level page node through tokens, which I called "page-node". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |