function termcase_get_mode in Termcase 8
Function to fetch termcase mode.
Parameters
string $mode_id: Id of the mode.
Return value
string Short description of the mode.
1 call to termcase_get_mode()
- VocabularyListBuilder::buildRow in src/
VocabularyListBuilder.php - Builds a row for an entity in the entity listing.
File
- ./
termcase.module, line 241 - The Termcase module gives you the option to specify specific case-formatting on terms.
Code
function termcase_get_mode($mode_id) {
switch ($mode_id) {
case TERMCASE_UCFIRST:
$termcase_mode = t('First character uppercase');
break;
case TERMCASE_LOWERCASE:
$termcase_mode = t('All characters lowercase');
break;
case TERMCASE_UPPERCASE:
$termcase_mode = t('All characters uppercase');
break;
case TERMCASE_PROPERCASE:
$termcase_mode = t('First character of each word uppercase');
break;
default:
$termcase_mode = t('None');
}
return $termcase_mode;
}