[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/audio/images/ -> audio_images.admin.inc (source)

   1  <?php
   2  // $Id: audio_images.admin.inc,v 1.1 2008/05/26 17:26:13 drewish Exp $
   3  
   4  /**
   5   * Module's settings form.
   6   */
   7  function audio_images_admin_settings() {
   8    $form['audio_image_size'] = array(
   9      '#type' => 'select',
  10      '#title' => t('Image size'),
  11      '#default_value' => variable_get('audio_image_size', 170),
  12      '#options' => array(
  13        '170' => '170 X 170',
  14        '150' => '150 X 150',
  15        '125' => '125 X 125',
  16        '100' => '100 X 100',
  17        '75'  => '75 X 75',
  18      ),
  19      '#description' => t('The size (in pixels) that the theme will display the images. Default is <em>170x170</em>.'),
  20    );
  21    $form['audio_default_image_type'] = array(
  22      '#type' => 'select',
  23      '#title' => t('Default image type'),
  24      '#default_value' => variable_get('audio_default_image_type', 0x03),
  25      '#options' => audio_image_type_dirty_array(),
  26      '#description' => t("Select the image type you would like displayed. <strong>NOTE:</strong> If an audio node does not have an image of this type associated with it, a random image will be chosen.")
  27    );
  28  
  29    return system_settings_form($form);
  30  }
  31  


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7