You are here

Example: Tabledrag in Examples for Developers 7

Same name and namespace in other branches
  1. 8 tabledrag_example/tabledrag_example.module \tabledrag_example
  2. 3.x modules/tabledrag_example/tabledrag_example.module \tabledrag_example

Example of draggable table rows.

Parent topics

File

tabledrag_example/tabledrag_example.module, line 7
An example of how to build a sortable form using tabledrag.

Functions

Namesort descending Location Description
tabledrag_example_get_tree tabledrag_example/tabledrag_example_parent_form.inc Recursively adds to the $itemtree array, ordered by parent/child/weight.
tabledrag_example_help tabledrag_example/tabledrag_example.module Implements hook_help().
tabledrag_example_install tabledrag_example/tabledrag_example.install Implements hook_install().
tabledrag_example_menu tabledrag_example/tabledrag_example.module Implements hook_menu().
tabledrag_example_parent_form tabledrag_example/tabledrag_example_parent_form.inc Build the parent-child example form.
tabledrag_example_parent_form_submit tabledrag_example/tabledrag_example_parent_form.inc Submit callback for the tabledrag_example_parent_form form.
tabledrag_example_parent_get_data tabledrag_example/tabledrag_example_parent_form.inc Retrives the tree structure from database, and sorts by parent/child/weight.
tabledrag_example_schema tabledrag_example/tabledrag_example.install Implements hook_schema().
tabledrag_example_simple_form tabledrag_example/tabledrag_example_simple_form.inc Build the tabledrag_simple_example_form form.
tabledrag_example_simple_form_submit tabledrag_example/tabledrag_example_simple_form.inc Submit callback for the tabledrag_example_simple_form form.
tabledrag_example_theme tabledrag_example/tabledrag_example.module Implements hook_theme().
tabledrag_example_uninstall tabledrag_example/tabledrag_example.install Implements hook_uninstall().
theme_tabledrag_example_parent_form tabledrag_example/tabledrag_example_parent_form.inc Theme callback for the tabledrag_example_parent_form form.
theme_tabledrag_example_simple_form tabledrag_example/tabledrag_example_simple_form.inc Theme callback for the tabledrag_example_simple_form form.

Classes

Namesort descending Location Description
TabledragExampleTestCase tabledrag_example/tabledrag_example.test Default test case for the tabledrag_example module.