You are here

function views_showcase_install in Views Showcase 7

Implements hook_install().

File

./views_showcase.install, line 6

Code

function views_showcase_install() {
  $style = image_style_save(array(
    'name' => 'views_showcase',
  ));
  $effect = array(
    'name' => 'image_scale_and_crop',
    'data' => array(
      'width' => 320,
      'height' => 180,
      'upscale' => TRUE,
    ),
    'isid' => $style['isid'],
  );
  image_effect_save($effect);
}