You are here

function theme_designkit_image in DesignKit 7

Same name and namespace in other branches
  1. 6 designkit.module \theme_designkit_image()

Make image markup overridable.

1 theme call to theme_designkit_image()
_designkit_preprocess in ./designkit.module
Helper function to turn design choices into theme variables.

File

./designkit.module, line 289

Code

function theme_designkit_image($variables) {
  if (!empty($variables['process'])) {
    return theme('image_style', array(
      'style_name' => "designkit-image-{$variables['name']}",
      'path' => $variables['uri'],
    ));
  }
  else {
    return theme('image', array(
      'path' => $variables['uri'],
    ));
  }
}