[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/ctools/ctools_ajax_sample/ -> ctools_ajax_sample.module (summary)

(no description)

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

Defines 27 functions

  ctools_ajax_sample_menu()
  ctools_ajax_sample_theme()
  ctools_ajax_sample_page()
  ctools_ajax_sample_hello()
  ctools_ajax_sample_tablenix()
  ctools_ajax_sample_login()
  ctools_ajax_sample_login_success()
  ctools_ajax_sample_animal()
  theme_ctools_ajax_sample_container()
  ctools_ajax_sample_animals()
  ctools_ajax_sample_cache_set()
  ctools_ajax_sample_cache_get()
  ctools_ajax_sample_cache_clear()
  ctools_ajax_sample_wizard_next()
  ctools_ajax_sample_wizard_finish()
  ctools_ajax_sample_wizard_cancel()
  ctools_ajax_sample_start()
  ctools_ajax_sample_start_submit()
  ctools_ajax_sample_configure_sheep()
  ctools_ajax_sample_configure_sheep_submit()
  ctools_ajax_sample_show_sheep()
  ctools_ajax_sample_configure_lizard()
  ctools_ajax_sample_configure_lizard_submit()
  ctools_ajax_sample_show_lizard()
  ctools_ajax_sample_configure_raptor()
  ctools_ajax_sample_configure_raptor_submit()
  ctools_ajax_sample_show_raptor()

Functions
Functions that are not part of a class:

ctools_ajax_sample_menu()   X-Ref
Implementation of hook_menu()


ctools_ajax_sample_theme()   X-Ref
Implementation of hook_theme()

Render some basic output for this module.

ctools_ajax_sample_page()   X-Ref
Page callback to display links and render a container for AJAX stuff.


ctools_ajax_sample_hello($js = NULL)   X-Ref
Returns a "take it all over" hello world style request.


ctools_ajax_sample_tablenix($js, $row)   X-Ref
Nix a row from a table and restripe.


ctools_ajax_sample_login($js = NULL)   X-Ref
A modal login callback.


ctools_ajax_sample_login_success($js, $action)   X-Ref
Post-login processor: should we go to the user account or stay in place?


ctools_ajax_sample_animal($js = NULL, $step = NULL)   X-Ref
A modal login callback.


theme_ctools_ajax_sample_container($content)   X-Ref
Theme function for main rendered output.


ctools_ajax_sample_animals()   X-Ref
Get a list of our animals and associated forms.

What we're doing is making it easy to add more animals in just one place,
which is often how it will work in the real world. If using CTools, what
you would probably really have, here, is a set of plugins for each animal.

ctools_ajax_sample_cache_set($id, $object)   X-Ref
Store our little cache so that we can retain data from form to form.


ctools_ajax_sample_cache_get($id)   X-Ref
Get the current object from the cache, or default.


ctools_ajax_sample_cache_clear($id)   X-Ref
Clear the wizard cache.


ctools_ajax_sample_wizard_next(&$form_state)   X-Ref
Handle the 'next' click on the add/edit pane form wizard.

All we need to do is store the updated pane in the cache.

ctools_ajax_sample_wizard_finish(&$form_state)   X-Ref
Handle the 'finish' click on teh add/edit pane form wizard.

All we need to do is set a flag so the return can handle adding
the pane.

ctools_ajax_sample_wizard_cancel(&$form_state)   X-Ref
Handle the 'cancel' click on the add/edit pane form wizard.


ctools_ajax_sample_start(&$form, &$form_state)   X-Ref
Wizard start form. Choose an animal.


ctools_ajax_sample_start_submit(&$form, &$form_state)   X-Ref
They have selected a sheep. Set it.


ctools_ajax_sample_configure_sheep(&$form, &$form_state)   X-Ref
Wizard form to configure your sheep.


ctools_ajax_sample_configure_sheep_submit(&$form, &$form_state)   X-Ref
Submit the sheep and store the values from the form.


ctools_ajax_sample_show_sheep($object)   X-Ref
Provide some output for our sheep.


ctools_ajax_sample_configure_lizard(&$form, &$form_state)   X-Ref
Wizard form to configure your lizard.


ctools_ajax_sample_configure_lizard_submit(&$form, &$form_state)   X-Ref
Submit the lizard and store the values from the form.


ctools_ajax_sample_show_lizard($object)   X-Ref
Provide some output for our raptor.


ctools_ajax_sample_configure_raptor(&$form, &$form_state)   X-Ref
Wizard form to configure your raptor.


ctools_ajax_sample_configure_raptor_submit(&$form, &$form_state)   X-Ref
Submit the raptor and store the values from the form.


ctools_ajax_sample_show_raptor($object)   X-Ref
Provide some output for our raptor.




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