termcase.api.php in Termcase 7
Same filename and directory in other branches
Termcase API hooks descriptions.
File
termcase.api.phpView source
<?php
/**
* @file
* Termcase API hooks descriptions.
*/
/**
* Alter string conversion before it is saved.
*
* @param string $converted_string
* The string that is about to be saved after the conversion.
*
* @param string $original_string
* The original unaltered string.
*
* @param int $case
* Static that defines the given case formatting. Possible options:
* TERMCASE_NONE
* TERMCASE_UCFIRST
* TERMCASE_LOWERCASE
* TERMCASE_UPPERCASE
* TERMCASE_PROPERCASE
*/
function hook_termcase_convert_string_alter(&$converted_string, $original_string, $case) {
$converted_string = str_replace(' ', '', $converted_string);
}
Functions
Name | Description |
---|---|
hook_termcase_convert_string_alter | Alter string conversion before it is saved. |