Can anyone please tell me where and how to get this fucntion to work so I can read the link variables:

function my_omega_alpha_link(&$variables){
  var_dump($variables);
}

I have tried several locations (preprocess dir preprocess.node.inc, template.php, etc.) I am using the context module, which I understand has some issues with omega.

Ultimately, I am trying to change the href for the "Add new Comment" link, but cannot find the right variable.

Comments

JSCSJSCS’s picture

or

function my_omega_alpha_preprocess_link(&$variables){
  var_dump($variables);
}

Or whatever, you know what I mean...

JSCSJSCS’s picture

cricket sounds....

roblav’s picture

I'm not sure if this will help, but this is how I'd change the link using a preprocess function in my template.php file:

function YOURTHEME_links__node__comment($vars) {
    $vars['links']['comment-add']['href'] = 'node/11';
    dpm($vars['links']['comment-add']['href']); 
}

I've left in the dpm() function assuming you're using the devel module to debug your code, this line will verify that the change worked.

The problem with using this function would be that it would set all of the comment links to the same value, so you'd need a way to dynamically change the value depending on the node you're on, unless that's what you want.