You are here

function globallink_format_display_string in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.7 globallink.inc \globallink_format_display_string()
  2. 7.6 globallink.inc \globallink_format_display_string()

Formats display string.

Parameters

string $string: The string to be formatted.

Return value

string The formatted string.

12 calls to globallink_format_display_string()
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.
globallink_entity_dashboard_form in globallink_entity/globallink_entity_send.inc
Builds form to create an entity submission.

... See full list

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;
}