After upgrading from Drupal 6, the text stored in the 'tokenauth_text' variable is no longer displayed on the site.
There are two problems:
- The text is stored in the 'body' key but should be stored in 'value'.
-
This code in the update function doesn't work at all:
// Formerly the default format, no longer the case. $text['format'] = 'filtered_html'; variable_set('tokenauth_text', $text);There is no reason a site which upgraded from Drupal 6 will ever have a text format called 'filtered_html' defined. Therefore, the variable winds up being saved with a text format that doesn't exist.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | tokenauth-upgrade-1670492-1.patch | 870 bytes | David_Rothstein |
Comments
Comment #1
David_Rothstein commentedCompletely untested, but I think something like the attached patch might work.