Override dialog default options

Override dialog default options

Hi.

i want to be able to create modal dialogs, with, for ex 

  1. close: function() {
  2. $(this).remove();
  3. }
without need to specify those on dialog creation, but somehow override those parameters on one place.

Is this possible?