example_element_elements

5 example_element.module example_element_elements()

Implementation of hook_elements().

File

developer/examples/example_element.module, line 50
This is an example demonstrating how a module can define custom form elements.

Code

function example_element_elements() {
  $type['phonenumber'] = array(
    '#input' => TRUE, 
    '#process' => array('example_element_expand' => array()), 
    '#validate' => array('example_element_validate' => array()), 
    '#default_value' => array(
      'areacode' => '',
      'number' => '',
      'extension' => '',
    ),
  );

  return $type;
}
Login or register to post comments