Active
Project:
Author Contact
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Dec 2009 at 07:29 UTC
Updated:
10 Mar 2010 at 11:02 UTC
Anyone can add follwing code to show contact link on node page if they dont want to show Contact Block. Author can add this thing in new release.
function authorcontact_menu(){
$items['node/%node/contact'] = array(
'title' => 'Contact',
'page callback' => 'drupal_get_form',
'page arguments' => array('authorcontact_form'),
'access callback' => 'user_access',
'access arguments' => array('access content'),
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
return $items;
}
Comments
Comment #1
pieterdcCool! I might test this. Thanks for sharing this piece of code.