Custom Macros

Component ID

1323354

Component name

Custom Macros

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Provides token-like macros that accept parameters withing the node body field or block markup that are replaced by functionality provided by submodules.

Availabile submodules:

  • Webform macro

    Defines a [webform] macro that is replaced by the form itself specified in the parameter. There are several parameters provided to enable fine grained control over the display of the form.

    [webform id=2985 title=on fields=name|surname class=class1 tplfile="file.tpl.php"]

    Only the "id" parameter is mandatory.

  • Webform results macro

    Defines a [webformresult] macro that is replaced by the data submited to the webform. You can specify what fields to show, and several other parameters.

    [webformresults id=3343 timestamp=on fields=name|surname timestampname="Date of submission" class=class1 tplfile="file.tpl.php"]

    Only the "id" parameter is mandatory.

  • Call to action macro

    Defines a [callToAction] macro that is with html defined in a tpl file. You can specify what classes, text and link to use

    [callToAction bt=bt1 it=it2 frame=long txt="Some long text" linktxt="Go to this" url="http://drupal.org" ]

    Only the "linktxt" and "url" parameters are mandatory.

  • Drupal form macro

    Defines a [drupalForm] macro that is replaced by a drupal form specified by form id.

    [drupalForm form_id=5 ]

    The "form_id" parameter is mandatory.

  • Get url alias macro

    Defines a [getUrlAlias] macro that is replaced by a drupal alias for the current node. If no alias is pressent macro is replaced by an empty string.

    [getUrlAlias]

    There are no parameters

This module was originally developed by Fredi Pevcin. Submodules were developed by Anže Gros and Rok Andrée.
The development and maintenance are supported by D.Labs