_locale_import_shorten_comments
- Versions
- 4.6 – 7
_locale_import_shorten_comments($comment)
Generate a short, one string version of the passed comment array
Parameters
$comment An array of strings containing a comment
Return value
Short one string version of the comment
Code
includes/locale.inc, line 994
<?php
function _locale_import_shorten_comments($comment) {
$comm = '';
while (count($comment)) {
$test = $comm . substr(array_shift($comment), 1) .', ';
if (strlen($comm) < 130) {
$comm = $test;
}
else {
break;
}
}
return substr($comm, 0, -2);
}
?>Login or register to post comments 