function classy_paragraphs_field_info in Classy paragraphs 7
Implements hook_field_info().
File
- includes/
classy_paragraphs.fields.inc, line 12 - Implements custom field: cp_list (CLASSY_PARAGRAPHS_FIELD_TYPE_LIST).
Code
function classy_paragraphs_field_info() {
return array(
CLASSY_PARAGRAPHS_FIELD_TYPE_LIST => array(
'label' => t('Class list'),
'description' => t('This field stores a selected class.'),
'default_widget' => 'options_select',
'default_formatter' => 'list_default',
// Setting below are necessary for "options_select" widget and
// "list_default" formatter to work correctly without warnings.
'settings' => array(
'allowed_values' => array(),
'allowed_values_function' => '',
),
),
);
}