You are here

function hook_termcase_convert_string_alter in Termcase 8

Same name and namespace in other branches
  1. 7 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: Defines the required case formatting. Possible options:

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 23
Hooks specific to the Termcase module.

Code

function hook_termcase_convert_string_alter(&$converted_string, $original_string, $case) {
  $converted_string = str_replace(' ', '', $converted_string);
}