function paragraphs_pack_get_field_title in Paragraphs pack 7
Get/Create title 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_title()
- ParagraphsPackTestCase::testParagraphsPackFieldTitleCreation in tests/
paragraphs_pack.test - Test function for field title creation.
- ParagraphsPackTestCase::testParagraphsPackFieldTitleInstanceCreation in tests/
paragraphs_pack.test - Test function for field title instance creation.
- paragraphs_pack_add_field_title in includes/
paragraphs_pack.fields_crud.inc - Adds title field to a paragraph bundle.
File
- includes/
paragraphs_pack.fields_crud.inc, line 59 - Fields CRUD functions.
Code
function paragraphs_pack_get_field_title() {
$field = _paragraphs_pack_get_field(array(
'field_name' => PP_FIELD_TITLE,
'type' => 'text',
'entity_types' => array(
PP_PARAGRAPH_TYPE,
),
));
return $field;
}