block.edit.php
CiviCRM's Smarty edit-block plugin
Template elements tagged {edit}...{/edit} are hidden unless action is create or update (this facilitates using form templates for read-only display).
Tags
Table of Contents
Functions
- smarty_block_edit() : string|null
- Smarty block function providing edit-only display support
Functions
smarty_block_edit()
Smarty block function providing edit-only display support
smarty_block_edit(array<string|int, mixed> $params, string $text, CRM_Core_Smarty &$smarty, bool &$repeat) : string|null
Parameters
- $params : array<string|int, mixed>
-
Template call's parameters.
- $text : string
-
{edit} block contents from the template.
- $smarty : CRM_Core_Smarty
-
The Smarty object.
- $repeat : bool
-
Repeat is true for the opening tag, false for the closing tag
Return values
string|null —the string, translated by gettext