Example: Tabledrag

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

Example of draggable table rows.

Parent topics

File

tabledrag_example/tabledrag_example.module, line 7

Functions

Title Sort descending File name Summary
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

Title Sort descending File name Summary
TabledragExampleTestCase tabledrag_example/tabledrag_example.test Default test case for the tabledrag_example module.