Skip to content
Snippets Groups Projects
Commit 23b6965d authored by Martin Anderson-Clutz's avatar Martin Anderson-Clutz
Browse files

Merge branch '3457346-add-smart-date' into '4.1.x'

Add category for Field UI

See merge request !133
parents 2a589c8d 5c4971f0
No related branches found
No related tags found
No related merge requests found
Pipeline #210806 passed with warnings
......@@ -58,7 +58,7 @@ information, see
1. To use the field provided by this module, add a new field to your content
type, for example at:
Administration » Structure » Content Types » Event » Manage Fields
2. `"Smart date range"` will be listed in the General section of field options.
2. `"Smart date range"` will be listed in the Date and time section of field options.
3. In the settings, you have the option to specify:
- a default date and time, either a fixed value (such as the start of a
conference) or a relative date (such as '+1 Saturday').
......
......@@ -13,7 +13,12 @@ use Drupal\Core\TypedData\DataDefinition;
* @FieldType(
* id = "smartdate",
* label = @Translation("Smart date range"),
* description = @Translation("Create and store timestamp ranges, with an intelligent UI."),
* description = {
* @Translation("Create and store events as timestamp ranges, for maximum performance."),
* @Translation("Able to handle timezones and recurring dates (with an optional submodule)"),
* @Translation("Provides an intuitive widget for easy entry, natural language formatting, and handles all day events too"),
* },
* category = "date_time",
* default_widget = "smartdate_inline",
* default_formatter = "smartdate_default",
* list_class = "\Drupal\smart_date\Plugin\Field\FieldType\SmartDateFieldItemList",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment