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.
Components:
-Drupal 7.56
-Menu block 7.x-2.7
-Context 7.x-3.7
-Context menu block 7.x-3.1-beta3+0-dev
I am experiencing an issue with the context_menu_block module where menu blocks are not informed of the page context.
I have done some debugging, and I have found the issue but have not been able to correct it.
function _context_menu_block_active_values($context_name) {
$contexts = context_get();
$active_values = array();
// If there aren't any contexts available, then there aren't any active values.
if (empty($contexts['context'])) {
return $active_values;
}
...
context_get always returns an empty array, which leads me to believe that this function is running before the context triggers have been triggered.
Comments
Comment #2
vuilI close the issue as Closed (outdated). Feel free to re-open or create a new one if the issue still exists on the latest 7.x-3.x dev branch. Thank you.