You are here

views_showcase.install in Views Showcase 7

Same filename and directory in other branches
  1. 6.2 views_showcase.install

File

views_showcase.install
View source
<?php

/**
 * Implements hook_install().
 */
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);
}

/**
 * Implements hook_uninstall().
 */
function views_showcase_uninstall() {
  image_style_delete(image_style_load('views_showcase'));
}

Functions