So as to have the ability to shortly edit Fullcalendar gadgets, I altered Drupal Development node edit type of Drupal Development particular content material kind so Drupal Development occasions are saved with AJAX and Drupal Development web page would not must reload.
Nevertheless, I do not know how one can shut Drupal Development overlay afterwards. I discovered overlay_close_dialog(), however how do I implement this in my capabilities (I am very new to Drupal coding)?
Till now I’ve:
<?php /** * Implements hook_form(). */ operate fullcalendar_ajax_node_save_form_alter(&$kind, &$form_state, $form_id) { if( $form_id == 'agenda_item_node_form') { $kind['actions']['submit'] = array( '#kind' => 'submit', '#worth' => t('Add to Apple Kind'), '#weight' => 50, '#ajax' => array( 'wrapper' => 'agenda-item-node-form', 'callback' => 'fullcalendar_ajax_node_save_callback', 'impact' => 'fade' ), '#submit' => array ( 0 => 'node_form_submit', ), ); } return $kind; } operate fullcalendar_ajax_node_save_callback($kind, &$form_state) { $form_state['rebuild'] = TRUE; return $kind; } ?>