I have created a sub theme and then modified the template.php of the parent omega theme with :

//print out variables for the link array
function themename_menu_link(array $variables) {
  return print_r($variables);
}

I get no response at all. I have tried creating a template.php lower down in the sub-theme also but this resulted in nothing.

Anyone have any tips or is this a bug in the theme?

Comments

carlmcdade’s picture

Title: themename_menu_link not working in sub theme » hook_menu_link not working in template.php
Project: Omega » Drupal core
Version: 7.x-3.1 » 7.12
Component: Code » theme system
Category: support » bug

I have tried this in a number of clean installs and cleared the caches multiple times. This function is not picked up by the theme system.

cr0ss’s picture

Perhaps it's an Omegas issue. On my Omega 3.x this function works perfectly.

Version: 7.12 » 7.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.