Index: dialog/dialog.module
===================================================================
--- dialog/dialog.module	(revision 2356)
+++ dialog/dialog.module	(working copy)
@@ -106,7 +106,7 @@
  *   you specifically set re_render = TRUE. If ajax is set the
  *   form will never be redirected.
  */
-function dialog_form_wrapper($form_id, &$form_state) {
+function dialog_form_wrapper($form_id, &$form_state, $options = array()) {
   ctools_include('form');
   // This won't override settings already in.
   $form_state += array(
@@ -116,7 +116,7 @@
 
   $output = ctools_build_form($form_id, $form_state);
   if (!empty($form_state['ajax']) && empty($form_state['executed'])) {
-    return dialog_form_render($form_state, $output);
+    return dialog_form_render($form_state, $output, $options);
   }
 
   return $output;
@@ -125,7 +125,7 @@
 /**
  * Render a form into an AJAX display.
  */
-function dialog_form_render($form_state, $output) {
+function dialog_form_render($form_state, $output, $options = array()) {
   $title = empty($form_state['title']) ? '' : $form_state['title'];
 
   // If there are messages for the form, render them.
@@ -138,7 +138,7 @@
     $commands[] = ctools_ajax_command_settings($form_state['js settings']);
   }
 
-  $commands[] = dialog_command_display($title, $output);
+  $commands[] = dialog_command_display($title, $output, $options);
   return $commands;
 }
 
