1. Created several menu blocks.
  2. Used menu_block_export to create a small module.
  3. Enabling this on another site.
  4. Blocks were created and rendered, but no menu block settings were utilized.

Assume that entries are not suppose to be made in the variable table for exported blocks?
Does the menu_block_ids need to update for the menu block settings to fire?

Comments

doublejosh’s picture

Title: Menu Block Export doesn't create variable settings on enable » Menu Block Export doesn't honor any menu block settings
doublejosh’s picture

doublejosh’s picture

Seems to me there is something wrong with menu_block_get_config() since it does have the exported block settings available within $blocks but can't match up the delta because that's just a number value.

doublejosh’s picture

Status: Active » Closed (works as designed)

The issue actually ended up being that Features + Context listed the block deltas as just a single number, so the delta would never match. Updated by context entry in the feature and away we go.

Torenware’s picture

Josh,

I don't understand what you mean by:

The issue actually ended up being that Features + Context listed the block deltas as just a single number, so the delta would never match. Updated by context entry in the feature and away we go.

This is a fix you made against menu_block, a fix that somebody made against features (and if so, for what version), or is the current behavior (which is mystifying) actually "working as designed"?

doublejosh’s picture

Sure.
My workaround was to add more descriptive deltas into the export code, then match those in my context saved as a feature.
The menu_block_export module outputs deltas as just a number...

    0 => array(
      'menu_name'   => 'main-menu',
      'parent_mlid' => 7532,
      'title_link'  => 0,
      'admin_title' => 'more news',
      'level'       => 1,
      'follow'      => 0,
      'depth'       => 0,
      'expanded'    => 0,
      'sort'        => 0,
    ),

Which I changed to...

    'mysite_menu_blocks-1' => array(
      'menu_name'   => 'main-menu',
      'parent_mlid' => 7532,
      'title_link'  => 0,
      'admin_title' => 'more news',
      'level'       => 1,
      'follow'      => 0,
      'depth'       => 0,
      'expanded'    => 0,
      'sort'        => 0,
    ),

Then I referenced this block in my feature and it worked.

doublejosh’s picture

Issue summary: View changes

use a list.