I'm creating a pdf and emailing it when someone clicks a button and I like to hide the invoked path from the end user as its no use to them
$pdf_content = module_invoke('print_pdf', 'generate_path', "node/{$node->nid}/example");
causes the browser to redirect off to that url because the menu_set_active_item manipulates the $_GET['q']
So I've made a patch to return the path to what it was before when its finished manipulating it

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chrisns’s picture

Version: 7.x-1.2 » 7.x-2.x-dev
FileSize
804 bytes

appologies, working patch file attached