Closed (duplicate)
Project:
Strongarm
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 May 2012 at 15:55 UTC
Updated:
24 May 2012 at 06:20 UTC
I am using Features module and Strongarm to add variable to my feature.
The value of this variable is id of menu item.
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'taxonomy_menu_vocab_parent_blog_category';
$strongarm->value = '396';
$export['taxonomy_menu_vocab_parent_category'] = $strongarm;
The problem is that on other site, where i enable my feature - that menu item has other id (not 396) - that is why this variable points to wrong menu item.
How i can solve this?
Can i transparently change this numeric id to something more site-independent (for example menu name plus menu item path, so instead 396 i will got "main-menu:blog") while variable is exported and imported?
Maybe i can write some preprocess function for this custom variable?
Comments
Comment #1
simon georges commentedClosing (as a duplicate of #1594850: Override variable value when adding to feature).