You are here

function phone_widget_info in Phone 6

Same name and namespace in other branches
  1. 5 phone.module \phone_widget_info()

Implementation of hook_widget_info().

Here we indicate that the content module will handle the default value and multiple values for these widgets.

Callbacks can be omitted if default handing is used. They're included here just so this module can be used as an example for custom modules that might do things differently.

IMPORTANT! - field and widget names will be truncated to 32 characters in the database and in internal arrays, like content_fields().


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


function phone_widget_info() {
  return array(
    'phone_textfield' => array(
      'label' => t('Textfield'),
      'field types' => array(
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,