You are here

function isbn_widget_info in ISBN Field 6

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.

File

./isbn.module, line 347
Defines ISBN field types.

Code

function isbn_widget_info() {
  return array(
    'isbn_field' => array(
      'label' => t('ISBN field'),
      'field types' => array(
        'isbn',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
      'callbacks' => array(
        'default value' => CONTENT_CALLBACK_DEFAULT,
      ),
    ),
  );
}