Hi everyone,

I realized that the Multistep Menu (in a block) disappeared after I enabled the Entity Translation module.
I found this post which gave me a clue where to put my fix.

So it looks like this code:
$node_edit = array('node_page_edit', 'page_manager_node_edit');
is not enough to check for entity translation.

I had to add 'entity_translation_edit_page' to the $node_edit callback array in order to get it back, like this:

/**
 * Implements hook_block_view().
 */
function multistep_block_view($type = '') {
  if (!is_multistep($type)) return;

  $router_item = menu_get_item();
  $page_callback = $router_item['page_callback']; 
  
  // I added 'entity_translation_edit_page' to the callback array
  $node_edit = array('node_page_edit', 'page_manager_node_edit','entity_translation_edit_page');
  $node_add = array('node_add', 'page_manager_node_edit');
  
  if (in_array($page_callback, $node_edit)) {
  ...

I don't know if it's a Entity Translation module bug, a Multistep bug, or both/none of them, but I thought it could be helpful to some other to find the fix (hack actually).
I'm open to any suggestion to improve this patch, as it looks really hacky to me...

Hope this helps

Comments

  • generalconsensus committed e4e125c on 7.x-2.x
    Fixed disappearance of multistep from certain page callbacks : Issue #...
generalconsensus’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Active » Fixed
generalconsensus’s picture

Status: Fixed » Closed (fixed)