Documentation

modifier.crmInsert.php

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Functions

smarty_modifier_crmInsert()  : string
Replace the value of an attribute in the input string. Assume the the attribute is well formed, of the type name="value". If no replacement is mentioned the value is inserted at the end of the form element

Functions

smarty_modifier_crmInsert()

Replace the value of an attribute in the input string. Assume the the attribute is well formed, of the type name="value". If no replacement is mentioned the value is inserted at the end of the form element

smarty_modifier_crmInsert(string $string, string $attribute, string $value[, string $insertBefore = '/>' ]) : string
Parameters
$string : string

The html to be tweaked with.

$attribute : string

The attribute to insert.

$value : string

The new attribute value.

$insertBefore : string = '/>'

The string before which we want this tag inserted.

Return values
string

the new modified html string


        
On this page

Search results