Created
January 14, 2014 13:04
-
-
Save heyMP/8417971 to your computer and use it in GitHub Desktop.
Adding a destination parameter on the end of any link with drupal_get_desitnation(). You can add it to the links render array using #options.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$vars['edit_reg'] = array( | |
'#type' => 'link', | |
'#href' => 'field-collection/field-event-instance/' . $registration_id . '/edit', | |
'#title' => 'Edit', | |
'#alt' => 'Edit registrations.', | |
'#attributes' => array( | |
'class' => 'button', | |
), | |
'#options' => array('query' => drupal_get_destination()), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment