In the relativity_nodeapi function, the following code checks the weighting setting and user access level for relativity link operations before theming that section and adding it to the node content array:

      // output links to attach allowed children types and remove existing children
      if ($w = variable_get('relativity_'. $node->type .'_operations_weight', 12) && user_access('view link operations')) {
        $node->content['relativity_operations'] = array(
          '#value' => theme('relativity_show_link_operations', $node),
          '#weight' => $w,
        );
      }

It seems that the 'if' statement sets the variable $w to True, rather than a weight as intended, so on my site the link operations section is always displayed at the top of the page. Change the 'if' statement to the following fixes it for me:

 if (($w = variable_get('relativity_'. $node->type .'_operations_weight', 12)) && user_access('view link operations')) {
   ...
}

Comments

jtbayly’s picture

Status: Active » Reviewed & tested by the community

Yep. I had that problem too. This patch fixed it up. Thanks.

jonhattan’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks.

Status: Fixed » Closed (fixed)

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