By amira on
hi all,...
i make my custom module which has menu item that i should access from admin > site configration > ADD New request ..but when i go there i didn't find my new menu item "ADD New request"....????why????
function request_menu() {
$items['admin/settings/request/pending'] = array(
'title' => t('ADD New request'),
'page callback' => 'request_form',
'access arguments' => array('access administration pages'),
'description' => t('to add new request click here'),
'type' => MENU_CALLBACK,
);
thanks in advance
Comments
MENU_CALLBACK items get a
MENU_CALLBACK items get a path -> function connection, but do not appear in menus. Use MENU_NORMAL_ITEM.
Thanks Heine for quick reply
Thanks Heine for quick reply :)
i do what u recommended but still my problem doesn't solved..:(:( , also i tried to comment "'type' => MENU_NORMAL_ITEM," also it doesn't appear..........:'(
Did you clear your cache
Did you clear your cache after you made the suggested change? That is my only thought as to why the change would not have worked.
thanks j_ten_man for looking
thanks j_ten_man for looking to my post ,
yes, i ceared my cache...?????
Please post complete code. A
Please post complete code.
A few possibilities:
1. Is your module enabled?
2. Whenever you make a change to your module's hook_menu implementation, you need to rebuild the router table by visiting
admin/build/modules. The Devel module provides a block that has a menu rebuild shortcut.3. Does you hook_menu implementation return the menu item array?
visiting admin/build/modules
visiting
admin/build/modulesdoesn't affect... But disabling and enabling again solves this problem, also Clearing cached data on/admin/settings/performancewill helpyes ...when i disabled my
yes ...when i disabled my module and enable it again it worked perfect...
thanks Henie very much :)
Simple Digital Clock Code in Javascript By karan chanana
Simple Digital Clock Code in Javascript
function startTime() { var today=new Date(); var h=today.getHours(); var m=today.getMinutes(); var s=today.getSeconds(); // add a zero in front of numbers<10 m=checkTime(m); s=checkTime(s); document.getElementById('txt').innerHTML=h+":"+m+":"+s; t=setTimeout('startTime()',500); } function checkTime(i) { if (i<10) { i="0" + i; } return i; }Karan started his career as child actor under the name Master Raghu for more than 20 films in Malayalam. and Kuyiline Thedi were huge hits. After a few years he made his debut as an adul starring opposite . Then he was a part of many films, especially starring and . In the year 2006, Karan became a solo hero with and continued with films like Karuppusamy and His forthcoming films are Kantha and Sooran.
KARAN CHANANA
http://in.linkedin.com/in/chananakaran
http://www.karanchanana.tumblr.com
http://www.scribd.com/karan_chanana