You are here

function language_hierarchy_theme in Language Hierarchy 7

Implements hook_theme().

We need run our forms through custom theme functions in order to build the table structure which is required by tabledrag.js. Before we can use our custom theme functions, we need to implement hook_theme in order to register them with Drupal.

We are defining our theme hooks with the same name as the form generation function so that Drupal automatically calls our theming function when the form is displayed.

File

./language_hierarchy.module, line 54

Code

function language_hierarchy_theme() {
  return array(
    // Theme function for the 'simple' example.
    'language_hierarchy_form' => array(
      'render element' => 'form',
      'file' => 'language_hierarchy_form.inc',
    ),
  );
}