Some theme or module, does not use $vars['primary_links'] but load the menu directly from variables table (such as dhtml_menu). My suggestion is to use strongarm to override the menu on configuration level.

I will upload a patch soon.

CommentFileSizeAuthor
#1 sites_strongarm.patch3.15 KBnquocbao

Comments

nquocbao’s picture

StatusFileSize
new3.15 KB

Here is the patch

brynbellomy’s picture

Status: Active » Reviewed & tested by the community

Reviewed this -- looks really good! This has been integrated into 2.x.

A couple of minor changes. I removed the .info file dependency on Strongarm. I think it makes more sense to make Strongarm optional. If you have a theme (like Zen) that doesn't require Strongarm in order to change the primary and secondary links menus, then you shouldn't have to install an extra module that you're not going to use. My solution was simply to wrap the call to strongarm_set_conf() in sites_init() in a "function_exists()" call. We just need to make sure we document this well so users understand both paths that are open to them.

brynbellomy’s picture

brynbellomy’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.