Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

ECA Helper

Security revoked No further development 357 sites

Part of the ECA ecosystem · 51 projects

This module provides helper functions and quick actions for the ECA (Event, Condition, Action) system in Drupal. It enables users to perform tasks like making HTTP requests, manipulating form elements, managing cookies and headers, and interacting with Drupal services directly within ECA configurations without needing to create custom plugins.

This module is unsupported due to a security issue the maintainer didn’t fix.

If you want to use this module, your options are:

  • Choose another, actively maintained module instead
  • Following the unsupported project process.
  • Hire someone to fix the security bug so the module can be re-published and supported (Consider hiring companies listed in the Marketplace)

Add helpers functions for ECA

Events

  • Preprocess event
  • Status message event

Actions:

  • Simple http request, if response data is json you can access with [token_name:json:response_data_key]
  • Workflow label
  • Workflow state
  • Get $_SERVER, $_COOKIE, $_SESSION, $_ENV, $_GET, $_POST variable
  • Set cookie value for response
  • Form Set any form element field value by key
  • Form Get any form element field value by key
  • Form attach library
  • Form add css class
  • Form dumper data (dev)
  • ThirtPartySetting Get/Set value
  • Preprocess Get/Set value for variables
  • Preprocess attach library
  • Preprocess add css class
  • Preprocess remove item
  • Headers Set/Remove values
  • Add custom tag/script/style to header, body top, body bottom
  • Alter status messages






ECA Quick Action
Create quick action for ECA without need define plugin and module.
Create file docroot/sites/eca/EcaActions.php


<?php
/**
 * Define the ECA quick actions.
 * 
 * Define action id, label, and callback, service.
 */
function ECAQuickActions(): array {
  return [
    "hello" => [
      "label" => "ECA Action Hello",
      "callback" => "eca_quick_actions_hello"
    ],
    "hello_inline" => [
      "label" => "ECA Action Inline",
      "callback" => function ($hello) {
        \Drupal::messenger()->addMessage('Inline callback' . $hello);
      }
    ],
    "hello_service" => [
      "label" => "ECA Action Call Drupal service",
      "service" => "messenger",
      "callback" => "addMessage"
    ]
  ];
}

function eca_quick_actions_hello($hello) {
  \Drupal::messenger()->addMessage('Hello world: ' . $hello);
  return "Hello world: " . $hello;
}

Use ECA Helper: Quick Action and choose the ECA Action Hello

SUPPORT DEVELOPMENT

Buy me a coffee 🥤

Donation vith Paypal by email: [email protected]








Drupal 10–11

Ask your assistant about ECA Helper

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
36
Tracked since
Apr 2024
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 24
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.1-beta3 Pre-release 10–11 PHP >=8.1 Aug 15, 2024
1.0.2-beta1 Pre-release 9–10 Aug 13, 2024
2.0.0-beta2 Pre-release 10–11 PHP >=8.1 Aug 8, 2024
2.0.0-beta1 Pre-release 10–11 PHP >=8.1 Jun 26, 2024
1.0.1 Stable 9–10 Jun 26, 2024
1.0.1-beta1 Pre-release 9–10 Apr 4, 2024