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 function _omniture_get_token_context()
calls functions defined in menu.module and this creates a dependency with menu.
This patch adds that as an explicit dependency.
Comment | File | Size | Author |
---|---|---|---|
#3 | omniture-check_if_menu_is_enabled-1866116-3.patch | 834 bytes | lucascaro |
omniture-add_menu_dependency.patch | 625 bytes | lucascaro | |
Comments
Comment #1
bleen CreditAttribution: bleen commentedNice catch ... one thought though. Is it preferable to add this dependency or to add a if(module_exists('menu')){...} to the token context code?
Comment #2
lucascaro CreditAttribution: lucascaro commentedgood point. module_exists makes sense, that way we can still provide contexts for nodes and taxonomies if menu is not enabled... I can post another patch if it helps.
Comment #3
lucascaro CreditAttribution: lucascaro commentedthis one should do
Comment #4
bleen CreditAttribution: bleen commentedwhat about all the token tree form elements like this:
Maybe we need a function to abstract "token type" as well?
Comment #5
lucascaro CreditAttribution: lucascaro commented@bleen18 that is showing the available tokens and if the menu module is not enabled it will not show tokens for menus, so that shouldn't be a problem.
That's the only other reference to the menu module in omniture so the patch should work as it is (unless it's too old, so I'll re-test it just in case :D )
Comment #6
lucascaro CreditAttribution: lucascaro commented#3: omniture-check_if_menu_is_enabled-1866116-3.patch queued for re-testing.
Comment #7
bleen CreditAttribution: bleen commentedGood enough for me: committed ... thanks!!
@lucascaro: if you have a second, I'd love to get some other opinions on: #1856722: Create an official release for 7.x ...
Comment #8
bleen CreditAttribution: bleen commentedComment #9
lucascaro CreditAttribution: lucascaro commentedawesome, and done :)