A CTools modal confirm form in Drupal 7 with custom window size
This example uses the ajax callback on a form to provide a simple modal confirmation step using a custom sized window.
Here is our form. We include the required ctools modal scripts and add our own script to control the confirm functionality. The modal control is done by the action on the drupal js settings for 'CToolsModal'
function MYMODULE_form($form, $form_state, $items, $entity, $field) {