query string - Drupal Custom Module Hook_menu not working with querystring params -


i sending link out via email users when register must click , automatically direct , log them site.

i'm getting 404 error when trying access link.

example email sent out:

www.someurl.com/custom_confirm/verify?email=test@test.com&hash=somehash

my hook menu in custom_confirm looks this:

function custom_confirm_menu(){     $items = array();      $items['custom_confirm/verify'] = array(         'title' => 'confirming registration',         'page callback' => 'verify_email',         'access callback' => true,     );      return $items; } 

my function

function verify_email() 

is not being invoked when hit url. it's giving me 404 , not hitting code inside verify_email function.

is there wrong hook_menu? don't understand why not working?


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -