Client has a podcast on a page, they also added a transcript of the podcast to the body field. In the transcript they are timestamping when people are talking like "Bob [23:23] - I think that's a great idea" but drupal interprets that as a token, and then runs through hook_tokens but the only one giving an error is this module because the implementation of hook_tokens is type-hinted, so we get "PHP message: Uncaught PHP Exception TypeError: "color_field_tokens(): Argument #1 ($type) must be of type string, int given, called in..."
- Need to create a patch to remove the type-hinting and match the example hook provided by the token module's api file.
Issue fork color_field-3465505
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
porchlight commentedComment #6
nickdickinsonwildeThat's a very fancy edge case. Merged, thanks