function hook_termcase_convert_string_alter in Termcase 7
Same name and namespace in other branches
- 8 termcase.api.php \hook_termcase_convert_string_alter()
Alter string conversion before it is saved.
Parameters
string $converted_string: The string that is about to be saved after the conversion.
string $original_string: The original unaltered string.
int $case: Static that defines the given case formatting. Possible options: TERMCASE_NONE TERMCASE_UCFIRST TERMCASE_LOWERCASE TERMCASE_UPPERCASE TERMCASE_PROPERCASE
1 invocation of hook_termcase_convert_string_alter()
- _termcase_convert_string_to_case in ./
termcase.module - Helper function to convert the current string to the specified case.
File
- ./
termcase.api.php, line 24 - Termcase API hooks descriptions.
Code
function hook_termcase_convert_string_alter(&$converted_string, $original_string, $case) {
$converted_string = str_replace(' ', '', $converted_string);
}