function globallink_format_display_string in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.7 globallink.inc \globallink_format_display_string()
- 7.5 globallink.inc \globallink_format_display_string()
Formats display string.
Parameters
string $string: The string to be formatted.
Return value
string The formatted string.
13 calls to globallink_format_display_string()
- globallink_beans_dashboard_form in globallink_beans/
globallink_beans_send.inc - Builds form to create a beans submission.
- globallink_block_dashboard_form in globallink_block/
globallink_block_send.inc - Builds form to create a block submission.
- globallink_dashboard_active in ./
globallink_active_submissions.inc - Builds form to show all active GlobalLink submissions.
- globallink_dashboard_node_form in ./
globallink_send_translations.inc - Builds form to create a GlobalLink submission.
- globallink_entity_active_form in globallink_entity/
globallink_entity_active_submissions.inc - Builds form to show all active entity submissions.
File
- ./
globallink.inc, line 584 - Miscellaneous GlobalLink functions for node translations (non-entity).
Code
function globallink_format_display_string($string) {
if (mb_strlen($string) > 25) {
return mb_substr($string, 0, 25) . '...';
}
return $string;
}