getForm

The getForm allows to manipulate the generation of the forms.

Parameters

  1. Database_Result $objRow

    Database result set from table tl_form.

  2. string $strBuffer

    The generated form buffer.

Return Values

Return $strBuffer or your custom modification.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['getForm'][] = array('MyClass', 'myGetForm');

// MyClass.php
public function myGetForm(Database_Result $objRow, $strBuffer)
{
    if ($objRow->id == 2)
    {
        // Do something
    }

    return $strBuffer;
}

More information

References

See also

results matching ""

    No results matching ""