[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/dialog/ -> dialog.module (summary)

(no description)

File Size: 230 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  dialog_theme()
  dialog_menu()
  dialog_add_js()
  dialog_command_display()
  dialog_command_dismiss()
  dialog_command_loading()
  dialog_ajax_render()
  dialog_form_wrapper()
  dialog_form_render()
  dialog_get_form()
  template_preprocess_dialog_content()

Functions
Functions that are not part of a class:

dialog_theme()   X-Ref
Implementation of hook_theme().


dialog_menu()   X-Ref
Implementation of hook_menu().


dialog_add_js()   X-Ref
Add all the necessary javascript (and css) to be able to display a dialog
on the current page.  This must be used on any page that could possibly
contain a dialog.  It is safe to call this function repeatedly.


dialog_command_display($title, $html, $options = array()   X-Ref
Place HTML within the modal.

param: $title
param: $html

dialog_command_dismiss()   X-Ref
Dismiss the modal.


dialog_command_loading()   X-Ref
Display loading screen in the modal


dialog_ajax_render($title, $output, $options = array()   X-Ref
Perform a simple modal render and immediately exit.

This is primarily used for error displays, since usually modals will
contain forms.

dialog_form_wrapper($form_id, &$form_state)   X-Ref
Wrap a form so that we can use it properly with AJAX. Essentially if the
form wishes to render, it automatically does that, otherwise it returns
so we can see submission results.

return:

dialog_form_render($form_state, $output)   X-Ref
Render a form into an AJAX display.


dialog_get_form($form_id, $js)   X-Ref
Generic dialog replacement for drupal_get_form().  Suitable for use as the
page callback in a menu item.

This function introduces a new form callback function to handle the
post-submit dialog commands, in the ajax context.  This function takes the
form of form_id_dialog_success.  If this function is found, it will be
automatically called after a valid submission of the form has been detected.
If the function does not exist, a redirect will be issued based on the
redirect value in the form_state array.  As the final fallback, if the
redirect value is missing or empty, a client-side reload command is issued.

param: $id
param: $js
param: ...

template_preprocess_dialog_content(&$variables)   X-Ref
Process variables for dialog-content.tpl.php.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7