You are here

function globallink_format_display_string in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 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.

13 calls to globallink_format_display_string()
globallink_all_active_form in ./globallink_workbench_all_active_submissions.inc
Builds form to show all active entity submissions.
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_commerce_dashboard_form in globallink_commerce/globallink_commerce_send.inc
Builds form to create a commerce submission.
globallink_create_submission_form in ./globallink_send_translations.inc

... See full list

File

./globallink.inc, line 543
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;
}