/[drupal]/contributions/modules/flexinode/flexinode_admin.module
ViewVC logotype

Diff of /contributions/modules/flexinode/flexinode_admin.module

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

revision 1.5, Sat Jan 27 14:46:39 2007 UTC revision 1.5.2.1, Wed Feb 7 10:08:21 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: flexinode_admin.module,v 1.3 2006/12/25 17:25:36 ber Exp $  // $Id: flexinode_admin.module,v 1.5 2007/01/27 14:46:39 ber Exp $
3    
4  /**  /**
5   * @file Administration interface for flexinode.   * @file Administration interface for flexinode.
# Line 374  function flexinode_admin_field_form($fie Line 374  function flexinode_admin_field_form($fie
374      '#title' => t('Field label'),      '#title' => t('Field label'),
375      '#default_value' => $field->label,      '#default_value' => $field->label,
376      '#required' => TRUE,      '#required' => TRUE,
377        '#weight' => -2,
378      );      );
379    $form['description'] = array(    $form['description'] = array(
380      '#type' => 'textfield',      '#type' => 'textfield',
381      '#title' => t('Description'),      '#title' => t('Description'),
382      '#default_value' => $field->description,      '#default_value' => $field->description,
383      '#description' => t('A brief description of the field, to be displayed on the content submission form.'),      '#description' => t('A brief description of the field, to be displayed on the content submission form.'),
384        '#weight' => -1,
385      );      );
386    
387    $form[] = flexinode_invoke('config', $field);    $form[] = flexinode_invoke('config', $field);
# Line 389  function flexinode_admin_field_form($fie Line 391  function flexinode_admin_field_form($fie
391      '#title' => t('Required field'),      '#title' => t('Required field'),
392      '#default_value' => $field->required,      '#default_value' => $field->required,
393      '#description' => t('Whether the user must fill in the field when creating content.'),      '#description' => t('Whether the user must fill in the field when creating content.'),
394        '#weight' => 1,
395      );      );
396    $form['show_teaser'] = array(    $form['show_teaser'] = array(
397      '#type' => 'checkbox',      '#type' => 'checkbox',
398      '#title' => t('Show in teaser'),      '#title' => t('Show in teaser'),
399      '#default_value' => $field->show_teaser,      '#default_value' => $field->show_teaser,
400      '#description' => t('Whether this field should be shown as part of the teaser.'),      '#description' => t('Whether this field should be shown as part of the teaser.'),
401        '#weight' => 2,
402      );      );
403    
404    $form['weight'] = array(    $form['weight'] = array(
# Line 403  function flexinode_admin_field_form($fie Line 407  function flexinode_admin_field_form($fie
407      '#default_value' => $field->weight,      '#default_value' => $field->weight,
408      '#delta' => 10,      '#delta' => 10,
409      '#description' => t('Optional. On the content editing form, the heavier fields will sink and the lighter fields will be positioned nearer the top.'),      '#description' => t('Optional. On the content editing form, the heavier fields will sink and the lighter fields will be positioned nearer the top.'),
410        '#weight' => 3,
411      );      );
412    $form['submit'] = array(    $form['submit'] = array(
413      '#type' => 'submit',      '#type' => 'submit',
414      '#value' => t('Submit'),      '#value' => t('Submit'),
415        '#weight' => 10,
416      );      );
417    
418    $form['ctype_id'] = array(    $form['ctype_id'] = array(
# Line 424  function flexinode_admin_field_form($fie Line 430  function flexinode_admin_field_form($fie
430      $form['delete'] = array(      $form['delete'] = array(
431        '#type' => 'submit',        '#type' => 'submit',
432        '#value' => t('Delete'),        '#value' => t('Delete'),
433          '#weight' => 11,
434        );        );
435      $form['field_id'] = array(      $form['field_id'] = array(
436        '#type' => 'hidden',        '#type' => 'hidden',

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.5.2.1

  ViewVC Help
Powered by ViewVC 1.1.2