Current path element
Categories
Component ID
2718095
Component name
Current path element
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Summary
A tiny helper module to add hidden element containing current page path.
Works with forms within ajax requests and popups (which is impossible to get directly within submit).
Usage
To enable an element on the form, add your form id to variable like this in your settings.php:
$conf['current_page_element_forms'][] = 'user_register_form';
After this, you will be able to retrieve current page value in any validation/submit with next snippet:
$form_state['values']['current_page']
