You are here

termcase.api.php in Termcase 7

Same filename and directory in other branches
  1. 8 termcase.api.php

Termcase API hooks descriptions.

File

termcase.api.php
View 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

Namesort descending Description
hook_termcase_convert_string_alter Alter string conversion before it is saved.