Support the Custom Field module

Created on 18 April 2024, about 1 year ago

Could you add support for Custom Field β†’ ?
Custom Field + Simple Add More could replace Paragraphs.

✨ Feature request
Status

Active

Version

1.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dalra
  • πŸ‡ΊπŸ‡ΈUnited States owenbush Denver, CO

    The module could be updated to add custom_stacked and custom_flex options to the SAM_ALLOWED_WIDGET_TYPES array, but you can actually do this really simply with just one hook implementation.

    /**
     * Implements hook_sam_allowed_widget_types_alter().
     */
    function MYMODULE_sam_allowed_widget_types_alter(&$widget_types) {
      $widget_types[] = 'custom_stacked';
      $widget_types[] = 'custom_flex';
    }
    
Production build 0.71.5 2024