You are here

function iek_generate_summary in Image effect kit 7

Generates an image effects summary string.

Parameters

array $summary: An array that contains the effect items such as width, height, background, border, and so on.

Return value

string A summary string that was split with the 'summary' array.

7 calls to iek_generate_summary()
theme_iek_image_border_summary in ./iek.module
Theme function for border effect summary.
theme_iek_image_corner_summary in ./iek.module
Theme function for border effect summary.
theme_iek_image_filter_summary in ./iek.module
Theme function for filter effect summary.
theme_iek_image_overlay_summary in ./iek.module
Theme function for overlay effect summary.
theme_iek_image_padding_summary in ./iek.module
Theme function for border effect summary.

... See full list

File

./iek.module, line 1324
Primarily Drupal hooks and global API functions to manipulate image styles.

Code

function iek_generate_summary($summary = array()) {
  $text = '';
  foreach ($summary as $k => $v) {
    $summary[$k] = $k . ': ' . check_plain($v);
  }
  if (count($summary) > 0) {
    $text = '(' . implode(', ', $summary) . ')';
  }
  return $text;
}