Hello
drupal is not registering the menu path
here is my code
//****************Menu Hook********************
function customsearch_menu($may_cache) {
$items = array(); // This menu is working//
if ($may_cache) {
$items[] = array(
'path' => 'customsearch/form',
'title' => t('Search'),
'description' => t('Enable custom search.'),
'callback' => 'customsearch_formRender',
'access' => true
);
$items[] =array(
'path' =>'customsearch/member', //this menu is working//
'title' =>'searchresult',
'callback'=>'customsearch_member',
'type' =>MENU_CALLBACK,
'access' =>true,
);
//ajax menu call back
$items[] =array(
'path' =>'customsearch/caste', // THIS IS NOT WORKING//
'callback'=>'customsearch_caste_dropdwn',
'type' =>MENU_CALLBACK,
'access' =>true,
);
$items[] =array(
'path' =>'customsearch/result', // this is also working//
'title' =>'searchresults',
'callback'=>'customsearch_result',
'access' =>true,
'type' =>MENU_CALLBACK,
);
}
return $items;
}
i am getting 404 error when aceesing the path 'customsearch/caste',
Comments
Is
Is this:
'callback'=>'customsearch_caste_dropdwn',
maybe supposed to be this:
'callback'=>'customsearch_caste_dropdown',
(you are missing an 'o' in 'drowdown')
Contact me to contract me for D7 -> D10/11 migrations.
menu is not registering
No that is name of the function
Let's see your code (the
Let's see your code (the callback function)
Contact me to contract me for D7 -> D10/11 migrations.
Cache?
Did you empty the cache?
same issue please help, caches cleared
Can you please show your
Can you please show your actual hook_menu() function, instead of the mashup you've put there?
Contact me to contract me for D7 -> D10/11 migrations.