You are here

function text_theme in Content Construction Kit (CCK) 6

Same name in this branch
  1. 6 examples/simple_field.php \text_theme()
  2. 6 examples/example_field.php \text_theme()
  3. 6 modules/text/text.module \text_theme()
Same name and namespace in other branches
  1. 6.3 modules/text/text.module \text_theme()
  2. 6.2 modules/text/text.module \text_theme()

Implementation of hook_theme().

File

examples/simple_field.php, line 83
SIMPLE EXAMPLE. This is similar to to example_field but creates only a single widget formatted in the traditional manner, not using hook_elements. This example also omits all optional parts of the field module to create a simpler example for…

Code

function text_theme() {
  return array(
    'text_textarea' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
    'text_textfield' => array(
      'arguments' => array(
        'element' => NULL,
      ),
    ),
  );
}