Drupal site wide contact form permissions for all programmatically

121 Views Asked by At

I am developing a drupal(7.x) module where I need to give site wide contact form permissions for all programmatically.

I want this programmatically :- enter image description here

I need help about this. If any one know how to do this please help me.

Thanks and regards

Gmw Raj

1

There are 1 best solutions below

0
On

My problem solved by using this solution(Jaypan)

**<?php
function mymodule_menu_alter(&$menu)
{
  if(isset($menu['contact']))
  {
    $menu['contact']['access callback'] = TRUE;
  }
}
?>**

visit this link