Sets the field placeholder.
Syntax
Labels::setPlaceholder($table, $field, $placeholder, $language)
Arguments
$table
the table name.
$field
the field name.
$placeholder
the field placeholder.
$language
the language of the placeholder. If the $language parameter is not specified, the current language is used.
Return value
No return value.
Example
This example shows how to change the "descr" field placeholder of the "carscars" table to "Cars description".
Note: You can use this code in the AfterAppInit, AfterTableInit, BeforeProcess events.
Labels::setPlaceholder("carscars", "descr", "Cars description");
See also:
•Labels/Titles API: getPlaceholder()
•Miscellaneous settings: Label Editor
•"Edit As" settings: Text Field
•Page Designer: Working with page elements