views_showcase.install in Views Showcase 7
Same filename and directory in other branches
File
views_showcase.installView 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
Name | Description |
---|---|
views_showcase_install | Implements hook_install(). |
views_showcase_uninstall | Implements hook_uninstall(). |