You are here

function phone_elements in Phone 6

Implementation of FAPI hook_elements().

Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.

Drupal will automatically theme the element using a theme with the same name as the hook_elements key.

Autocomplete_path is not used by text_widget but other widgets can use it (see nodereference and userreference).

File

./phone.module, line 789
Defines phone number fields for CCK. Provide some verifications on the phone numbers

Code

function phone_elements() {
  return array(
    'phone_textfield' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'phone_textfield_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
  );
}