/[drupal]/contributions/modules/compact_forms/compact_forms.admin.inc
ViewVC logotype

Diff of /contributions/modules/compact_forms/compact_forms.admin.inc

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

revision 1.3, Sun May 3 20:08:05 2009 UTC revision 1.4, Wed Sep 30 03:52:36 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: compact_forms.admin.inc,v 1.2 2009/05/03 19:09:26 sun Exp $  // $Id: compact_forms.admin.inc,v 1.3 2009/05/03 20:08:05 sun Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 9  Line 9 
9  /**  /**
10   * Form builder function for Compact Forms settings.   * Form builder function for Compact Forms settings.
11   */   */
12  function compact_forms_admin_form() {  function compact_forms_admin_form($form, &$form_state) {
13    $form['compact_forms_ids'] = array(    $form['compact_forms_ids'] = array(
14      '#type' => 'textarea',      '#type' => 'textarea',
15      '#title' => t('Form CSS ids'),      '#title' => t('Form CSS ids'),
# Line 18  function compact_forms_admin_form() { Line 18  function compact_forms_admin_form() {
18      '#default_value' => variable_get('compact_forms_ids', 'user-login-form'),      '#default_value' => variable_get('compact_forms_ids', 'user-login-form'),
19      '#description' => t('The CSS ids of forms that shall be displayed compact. One per line.'),      '#description' => t('The CSS ids of forms that shall be displayed compact. One per line.'),
20    );    );
   $form['compact_forms_colons'] = array(  
     '#type' => 'checkbox',  
     '#title' => t('Keep trailing colons in labels'),  
     '#default_value' => variable_get('compact_forms_colons', 0),  
     '#description' => t('When enabled, trailing colons after the field label will be removed.'),  
   );  
21    $form['compact_forms_stars'] = array(    $form['compact_forms_stars'] = array(
22      '#type' => 'radios',      '#type' => 'radios',
23      '#title' => t('Required field handling'),      '#title' => t('Required field handling'),

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2