Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Features
- Create / Modify / Delete field data
- Create / Modify / Delete field instance
Available Tags
- field
- field instance
Automatic extraction of patterns files status
Yes, supported since version 7.x-1.x
Examples
Field data operation
info:
title: Data field operations
description: Add /Modify / Delete data field
author: QScience
category: Examples
version: 1.0
core: 7.x
author_email: i@me.org
author_website: <a href="http://qlectives.eu">http://qlectives.eu</a>
actions:
- create:
tag: instance
entity: node
bundle: article
name: date
label: date Name
type: datetime
widget: date_select
weight: 1
- modify:
tag: instance
entity: node
bundle: article
name: date
cardinality: 2
instance_settings:
default_value: strtotime
default_value_code: '-10'
widget_settings:
increment: 10
input_format: Y/m/d - H:i:s
year_range:
years_back: '-2'
years_forward: '+2'
advanced:
label_position: within
text_parts:
year: 1
month: 1
day: 1
hour: 1
minute: 1
second: 1
field_settings:
granularity:
second: second
hour: hour
tz_handling: date
enddate_get: 1
- delete:
tag: instance
entity: node
bundle: article
name: date
field instance operation
info:
title: field instance operations
description: Add /Modify / Delete field instance
author: QScience
category: Examples
version: 1.0
core: 7.x
author_email: i@me.org
author_website: <a href="http://qlectives.eu">http://qlectives.eu</a>
actions:
- create:
tag: instance
entity: node
bundle: article
name: first
label: first
type: text
widget: text_textfield
weight: 5
- modify:
tag: instance
entity: node
bundle: article
name: first
label: edit
cardinality: 3
required: 1
default_value: bobo
description: test
size: 10
text_processing: 1
- delete:
tag: instance
entity: node
bundle: article
name: first