Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The token browser is automatically added to the configuration form of certain system actions, but only during the "add" operation and not on "edit". This makes editing form actions harder than it needs to be and is easily fixed by implementing hook_form_BASE_FORM_ID_alter
instead of hook_form_FORM_ID_alter
.
Comment | File | Size | Author |
---|---|---|---|
#2 | token-token_browser_on_action_edit-2868244-2.patch | 694 bytes | ckaotik |
Comments
Comment #2
ckaotikSee the attached patch.
Comment #3
BerdirThanks, committed.
Comment #6
LpSolit CreditAttribution: LpSolit as a volunteer commentedThe switch block should be enclosed in
if (isset($form['plugin'])) {
...
}
else the filebrowser module throws:
Undefined index: plugin in token_form_action_form_alter() (line 343 of modules/token/token.module).
With this patch backed out, the filebrowser module doesn't throw such messages, so this problem is new in Token 1.0.
Comment #7
BerdirPlease create a new issue, with a patch if possible, thanks!