function paragraphs_pack_get_field_body in Paragraphs pack 7
Get/Create body field.
This field can be used only on paragraph entity type.
Return value
array An array containing field values.
3 calls to paragraphs_pack_get_field_body()
- ParagraphsPackTestCase::testParagraphsPackFieldBodyCreation in tests/
paragraphs_pack.test - Test function for field body creation.
- ParagraphsPackTestCase::testParagraphsPackFieldBodyInstanceCreation in tests/
paragraphs_pack.test - Test function for field body instance creation.
- paragraphs_pack_add_field_body in includes/
paragraphs_pack.fields_crud.inc - Adds body field to a paragraph bundle.
File
- includes/
paragraphs_pack.fields_crud.inc, line 122 - Fields CRUD functions.
Code
function paragraphs_pack_get_field_body() {
$field = _paragraphs_pack_get_field(array(
'field_name' => PP_FIELD_BODY,
'type' => 'text_long',
'entity_types' => array(
PP_PARAGRAPH_TYPE,
),
));
return $field;
}