Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sites/all/modules/contrib/dialog/dialog.module b/sites/all/modules/contrib/dialog/dialog.module
- --- a/sites/all/modules/contrib/dialog/dialog.module
- +++ b/sites/all/modules/contrib/dialog/dialog.module
- @@ -145,7 +145,16 @@
- $commands[] = ctools_ajax_command_settings($form_state['js settings']);
- }
- - $commands[] = dialog_command_display($title, $output);
- + // refactor me please
- + $args = isset($form_state['args']) ? $form_state['args'] : array();
- + $options = NULL;
- + foreach ($args as $arg) {
- + if (is_array($arg) && array_key_exists('dialog_options', $arg)) {
- + $options = $arg['dialog_options'];
- + }
- + }
- +
- + $commands[] = dialog_command_display($title, $output, $options);
- return $commands;
- }
Add Comment
Please, Sign In to add comment