Download & Extend

Contact Links on Node View Page

Project:Author Contact
Version:6.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Contact Form on Node

Issue Summary

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

#1

Cool! I might test this. Thanks for sharing this piece of code.