function dialog_example_ajax_callback in Dialog 6
Same name and namespace in other branches
- 7 example/dialog_example.module \dialog_example_ajax_callback()
 
1 string reference to 'dialog_example_ajax_callback'
- dialog_example_menu in example/
dialog_example.module  - Implementation of hook_menu().
 
File
- example/
dialog_example.module, line 53  
Code
function dialog_example_ajax_callback($ajax = FALSE) {
  if ($ajax) {
    $options = array(
      'height' => rand(25, 75) . '%',
      'width' => rand(25, 75) . '%',
      'position' => 'center',
    );
    dialog_ajax_render('test', dialog_example_page(), $options);
    return;
  }
  return 'hello world';
}