function brazilianids_widget_info in Brazilian IDs 6
Implementation of hook_widget_info().
File
- ./
brazilianids_cck.inc, line 179 - brazilianids_cck.inc Deal with brazilian IDs like CPF and CNPJ as CCK fields.
Code
function brazilianids_widget_info() {
return array(
'brazilianids_cpf_cnpj' => array(
'label' => t('Textfield'),
'field types' => array(
'brazilianids_cpf',
'brazilianids_cnpj',
'brazilianids_cpfcnpj',
),
// Who will handle multiple values, default is core.
// 'CONTENT_HANDLE_MODULE' means the module does it.
// See optionwidgets for an becape_cck of a module that
// handles its own multiple values.
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
// CONTENT_CALLBACK_DEFAULT default value, default is core.
// 'CONTENT_CALLBACK_CUSTOM' means the module does it.
// 'CONTENT_CALLBACK_NONE' means this widget has
// no default value.
'default value' => CONTENT_CALLBACK_DEFAULT,
),
),
);
}