function paragraphs_pack_get_field_expand in Paragraphs pack 7
Get/Create expand field.
This field can be used only on paragraph entity type.
Return value
array An array containing field values.
1 call to paragraphs_pack_get_field_expand()
- paragraphs_pack_add_field_expand in includes/
paragraphs_pack.fields_crud.inc - Adds expand field to a paragraph bundle.
File
- includes/
paragraphs_pack.fields_crud.inc, line 446 - Fields CRUD functions.
Code
function paragraphs_pack_get_field_expand() {
$field = _paragraphs_pack_get_field(array(
'field_name' => PP_FIELD_EXPAND,
'type' => 'list_boolean',
'entity_types' => array(
PP_PARAGRAPH_TYPE,
),
'cardinality' => 1,
'module' => 'list',
'settings' => array(
'allowed_values' => array(
0 => 'contained',
1 => 'expand',
),
),
));
return $field;
}