/[drupal]/contributions/modules/transformer/transforms/rotate.transform
ViewVC logotype

Contents of /contributions/modules/transformer/transforms/rotate.transform

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Sat Mar 10 07:38:04 2007 UTC (2 years, 8 months ago) by dopry
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
menu / url rearrangment... added some _help text and descriptions to menu items.
1 <?php
2 /**
3 * Resize Transform
4 */
5
6
7
8 function transformer_transform_rotate_info() {
9 return array(
10 'title' => t('Rotate'),
11 'mimes' => array('image/jpeg','image/gif','image/png'),
12 'extensions' => array('gif','jpg','jpeg','png'),
13 );
14 }
15
16 function transformer_transform_rotate_form($data) {
17 $form = array();
18 $form['degrees'] = array(
19 '#type' => 'textfield',
20 '#size' => 15,'#maxlength' => 30,
21 '#title' => t('Degrees'),
22 '#default_value' => $data['degrees'],
23 );
24 $form['#validate'] = array('transformer_transform_rotate_form_validate' => array());
25 return $form;
26 }
27
28 function transformer_transform_rotate_form_validate() {
29 }
30
31 function transformer_transform_rotate_perform($source, $destination, $data) {
32 return image_rotate($source, $destination, $data['degreess']);
33 }

  ViewVC Help
Powered by ViewVC 1.1.2