Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

custom_formatters

3,050 sites Security covered
View on drupal.org

🇺🇦

This module is maintained by Ukrainian developers.
Please consider supporting Ukraine in a fight for their freedom and safety of Europe.

The Custom Formatters module allows users to easily create custom Field Formatters without the need to write a custom module. Custom Formatters can then be exported as CTools Exportables, Features or Drupal API Field Formatters.

 

Features:

  • Pluggable editor/renderer engines:
    • Formatter preset
      Create simple formatters from existing formatters with preset formatter settings.
    • HTML + Tokens
      A HTML based editor with Token support.
    • PHP
      A PHP based editor with support for multiple fields and multiple values.
    • Twig
      A Twig based editor provided by the Twig filter module.
  • Supports for all fieldable entities, including but not limited to:
    • Drupal core - Comment, Node, Taxonomy term and User entities.
    • Field collection module - Field-collection item entity.
    • Media module - Media entity.
  • Exportable as:
    • Drupal API formatter via:
      • Custom Formatters export interface.
    • CTools exportable via:
      • Custom Formatters export interface.
      • CTools Bulk Export module.
      • Features module.
  • Live preview using real entities or Devel Generate.
  • Integrates with:
    • Coder Review
      Review your Custom Formatter code for Drupal coding standards and more.
    • Contextual links (Drupal core)
      Adds a hover link for quick editing of Custom Formatters.
    • Display Suite
      Format Display Suite fields.
    • Features
      Adds dependent Custom Formatters (from Views or Content types) to Feature.
    • Form Builder
      Drag'n'Drop interface for builder Formatter Settings forms.
    • Insert
      Exposes Custom Formatters to the Insert module.
    • Libraries API and the EditArea javascript library
      Adds real-time syntax highlighting.
    • Token
      Adds the Token tree browser to the HTML + Tokens engine.

 

Required Modules:

 

Recommended Modules:

 

Usage/Configuration:

Read the manual at: https://www.drupal.org/node/2514412

 

EditArea - Real-time syntax highlighting

The EditArea javascript library adds real-time syntax highlighting, to install it follow these steps:

  1. Download and install the Libraries API module.
  2. Download the EditArea library and extract and move it into your libraries folder as 'editarea' (eg. sites/all/libraries/editarea).

 

Activity

Total releases
1
First release
Apr 2025
Latest release
11 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
4.1.0-beta1 Pre-release Apr 30, 2025