Exziled
Exziled

Reputation: 493

Drupal Custom Module Hook_menu not working with querystring params

I am sending a link out via email to users when they register that they must click and it will automatically direct and log them into the site.

I'm getting a 404 error when trying to access this link.

Example email sent out:

www.someurl.com/custom_confirm/[email protected]&hash=somehash

My hook menu in custom_confirm looks like 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 I hit this URL. It's giving me a 404 and not hitting any code inside the verify_email function.

Is there something wrong with this hook_menu? I don't understand why this is not working?

Upvotes: 1

Views: 298

Answers (0)

Related Questions