/[drupal]/contributions/modules/textimage/textimage_admin.inc
ViewVC logotype

Diff of /contributions/modules/textimage/textimage_admin.inc

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

revision 1.5.4.9, Thu May 14 03:55:13 2009 UTC revision 1.5.4.10, Thu May 14 12:34:24 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: textimage_admin.inc,v 1.5.4.8 2009/05/12 23:47:14 deciphered Exp $  // $Id: textimage_admin.inc,v 1.5.4.9 2009/05/14 03:55:13 deciphered Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 125  function textimage_preset_edit(&$form_st Line 125  function textimage_preset_edit(&$form_st
125      '#type' => 'textarea',      '#type' => 'textarea',
126      '#title' => t('Description'),      '#title' => t('Description'),
127      '#description' => t('A short description displayed in the list of presets.'),      '#description' => t('A short description displayed in the list of presets.'),
128      '#default_value' => isset($preset['settings']['description'])      '#default_value' => isset($preset['description'])
129        ? $preset['settings']['description']        ? $preset['description']
130        : '',        : '',
131      '#rows' => 1,      '#rows' => 1,
132    );    );
# Line 158  function textimage_preset_edit(&$form_st Line 158  function textimage_preset_edit(&$form_st
158    // Text settings    // Text settings
159    $form['settings']['font'] = array(    $form['settings']['font'] = array(
160      '#type' => 'fieldset',      '#type' => 'fieldset',
161      '#title' => t('Font Settings'),      '#title' => t('Font settings'),
162      '#collapsible' => TRUE,      '#collapsible' => TRUE,
163      '#collapsed' => FALSE,      '#collapsed' => FALSE,
164    );    );
# Line 174  function textimage_preset_edit(&$form_st Line 174  function textimage_preset_edit(&$form_st
174    );    );
175    $form['settings']['font']['size'] = array(    $form['settings']['font']['size'] = array(
176      '#type' => 'textfield',      '#type' => 'textfield',
177      '#title' => t('Font Size'),      '#title' => t('Size'),
178        '#field_suffix' => t('px'),
179      '#description' => t('Enter the size in pixels of the text to be generated.'),      '#description' => t('Enter the size in pixels of the text to be generated.'),
180      '#default_value' => isset($preset['settings']['font']['size'])      '#default_value' => isset($preset['settings']['font']['size'])
181        ? $preset['settings']['font']['size']        ? $preset['settings']['font']['size']
# Line 212  function textimage_preset_edit(&$form_st Line 213  function textimage_preset_edit(&$form_st
213    
214    $form['settings']['text'] = array(    $form['settings']['text'] = array(
215      '#type' => 'fieldset',      '#type' => 'fieldset',
216      '#title' => t('Text Settings'),      '#title' => t('Text settings'),
217      '#collapsible' => TRUE,      '#collapsible' => TRUE,
218      '#collapsed' => FALSE,      '#collapsed' => FALSE,
219    );    );
# Line 481  function _textimage_vertical_tabs(&$form Line 482  function _textimage_vertical_tabs(&$form
482        // Add the JavaScript.        // Add the JavaScript.
483        $settings[$key] = array(        $settings[$key] = array(
484          'name' => $form['settings'][$key]['#title'],          'name' => $form['settings'][$key]['#title'],
485          'weight' => $form['settings'][$key]['#weight'] + (0.01 * $delta),          'weight' => 0.01 * $delta,
486        );        );
487        // Add a class to identify the fieldset.        // Add a class to identify the fieldset.
488        if (isset($form[$key]['#attributes']['class']) && !empty($form[$key]['#attributes']['class'])) {        if (isset($form[$key]['#attributes']['class']) && !empty($form[$key]['#attributes']['class'])) {
# Line 519  function _textimage_vertical_tabs(&$form Line 520  function _textimage_vertical_tabs(&$form
520        '#vertical_tabs_settings' => $settings,        '#vertical_tabs_settings' => $settings,
521        '#vertical_tabs_js' => $js,        '#vertical_tabs_js' => $js,
522        '#vertical_tabs_css' => $css,        '#vertical_tabs_css' => $css,
523        '#form_id' => $form_id,        '#form_id' => 'textimage_preset_edit',
524        '#type' => 'markup',        '#type' => 'markup',
525        '#value' => '',        '#value' => '',
526        '#theme' => 'vertical_tabs',        '#theme' => 'vertical_tabs',

Legend:
Removed from v.1.5.4.9  
changed lines
  Added in v.1.5.4.10

  ViewVC Help
Powered by ViewVC 1.1.2