Skip to content

Instantly share code, notes, and snippets.

@dashr
Created April 6, 2011 20:17
Show Gist options
  • Save dashr/906433 to your computer and use it in GitHub Desktop.
Save dashr/906433 to your computer and use it in GitHub Desktop.
seldom used form snippets
$hooks['user_profile_form'] = array(
'arguments' => array('form' => NULL)
);
function theme_user_profile_form($form) {}
if ($vars['menu_item']['map'][0]=='user') {
if ($vars['menu_item']['map'][2]=='edit') {
drupal_goto('trainings') ; #var_dump($_GET);
}
}
if ($vars['menu_item']['path']=="user/%/edit" && isset($_POST)) {
drupal_goto('trainings') ; #var_dump($_GET);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment