This file contains hidden or 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
| function cals_webforms_exit($destination = NULL) { | |
| if (arg(0) == 'system' && arg(1) == 'ajax') { | |
| $is_user_webform_submission = isset($_POST) && isset($_POST['form_build_id']) && isset($_POST['form_token']); | |
| if ($is_user_webform_submission && user_is_anonymous()) { | |
| $form_build_id = $_POST['form_build_id']; | |
| $form_id = $_POST['form_id']; | |
| $form_state = form_state_defaults(); | |
| $form_state['values'] = $_POST; // Important! | |
| $form = form_get_cache($form_build_id, $form_state); | |
| if (!$form) { |
This file contains hidden or 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
| function submenu_reorder_form_alter(&$form, $form_state) { | |
| //todo check form_state and verify this is a submenu_reorder | |
| foreach (element_children($form['menu_items']) as $id) { | |
| $title = $form['menu_items'][$id]['link_title']['#markup']; | |
| $form['menu_items'][$id]['link_title']['#markup'] = '<a href="www.google.com">'. $title . '</a>'; | |
| } | |
| } |