I've just implemented hook_domain_batch in a custom module and now I have issues creating Views page displays. They create fine but don't add an entry to the menu_router table and therefore are not viewable. After 2 hours or so of debugging I found that weight is not actually "optional" as per the documentation in domain.api.php.

I've resolved this in the attached patch by defaulting the weight to 0 in domain_menu() if it's not set.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Status: Active » Reviewed & tested by the community

Wow. Nice catch.

agentrickard’s picture

Do you have any idea what error is being thrown that stops menu rebuild from working?

agentrickard’s picture

Pushed to 7.x.3.

agentrickard’s picture

agentrickard’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
415 bytes

Patch for 6.x.

Status: Fixed » Closed (fixed)

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