Without this feature, I can't use the copybox option... I fix it with this hack:
if ( $a4 && variable_get('permalink_display_node_copybox_'. $node->type, FALSE)) {

/**
 * Implementation of hook_nodeapi().
 */
function permalink_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {

    case 'view':
      // If this node type is set to display a copybox
  
      //if (variable_get('permalink_display_node_copybox_'. $node->type, FALSE)) {
      if ( $a4 && variable_get('permalink_display_node_copybox_'. $node->type, FALSE)) {
        $node->content['permalink'] = array(
          '#value' => theme('permalink_copybox', $node),
          '#weight' => 51,
        );
      }
      
      break;

  }
}

Comments

pverrier’s picture

I have the same need. Here's a patch providing two new global options (in admin/settings/permalink) :

  1. a checkbox allowing to disable the copybox on teasers
  2. an input field for the copybox weight (in order to change its display position)

These options are global, so the settings apply whatever the node type is, for me it's sufficient but perhaps some users would like to tune these settings for each node type, that's not what I did...

pverrier’s picture

Status: Active » Needs review

Change to needs review.