You are here

function theme_iek_image_border_summary in Image effect kit 7

Theme function for border effect summary.

File

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

Code

function theme_iek_image_border_summary($variables) {
  $data = $variables['data'];
  if (isset($data['border_color']) && isset($data['border_thick_top']) && isset($data['border_thick_right']) && isset($data['border_thick_bottom']) && isset($data['border_thick_left'])) {
    $summary = array();
    $summary['border'] = $data['border_color'];
    $summary['top'] = $data['border_thick_top'] . 'px';
    $summary['right'] = $data['border_thick_right'] . 'px';
    $summary['bottom'] = $data['border_thick_bottom'] . 'px';
    $summary['left'] = $data['border_thick_left'] . 'px';
    return iek_generate_summary($summary);
  }
  return '';
}