*Enhanced custom edit handler*
The custom edit handler enables you to implement the validation method eZContentObjectEditHandler::validateInput().
This method can be used for additional validation at the content object level. It must return an array in the following format:
array( 'is_valid' => false, 'warnings' => array() );
When the is_valid flag is set to false, the warnings will be displayed to the user.
The warnings array should contain items as follows:
array( 'text' => 'Warning text displayed to user.' );
Example:
function validateInput( $http, &$module, &$class, $object, &$version, $contentObjectAttributes, $editVersion, $editLanguage, $fromLanguage, $validationParameters )
{
$result = array( 'is_valid' => false, 'warnings' => array() );
$result['warnings'][] = array( 'text' => 'Warning text displayed to user.' );
return $result;
}
Enhanced custom edit handler
The custom edit handler enables you to implement the validation method eZContentObjectEditHandler::validateInput(). This method can be used for additional validation at the content object level. It must return an array…
Address: https://doc.exponential.earth/exphelp/viewer/features/4.1/enhanced_custom_edit_handler.txt
Documentation license
This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.
Copyright (C) 1999 - 2014 eZ Systems AS and contributors