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

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

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

revision 1.24, Fri Jan 30 20:50:09 2009 UTC revision 1.25, Sun Feb 1 00:11:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: biblio.admin.inc,v 1.23 2009/01/30 03:18:58 rjerome Exp $  // $Id: biblio.admin.inc,v 1.24 2009/01/30 20:50:09 rhaschke Exp $
3  /**  /**
4   *   biblio.admin.inc   *   biblio.admin.inc
5   *   *
# Line 33  function biblio_admin_ahah($form, $eleme Line 33  function biblio_admin_ahah($form, $eleme
33  * Implementation of hook_settings().  * Implementation of hook_settings().
34  */  */
35  function biblio_admin_settings() {  function biblio_admin_settings() {
36    $version = '$Revision: 1.23 $ $Date: 2009/01/30 03:18:58 $';    $version = '$Revision: 1.24 $ $Date: 2009/01/30 20:50:09 $';
37    $version = str_replace('$', '', $version);    $version = str_replace('$', '', $version);
38    $form['biblio_rev'] = array(    $form['biblio_rev'] = array(
39      '#value' => $version,      '#value' => $version,
# Line 549  function biblio_admin_types_edit_form() Line 549  function biblio_admin_types_edit_form()
549        if ($fld['autocomplete'])        if ($fld['autocomplete'])
550          array_push($def_values[$fld['name']], 'autocomplete');          array_push($def_values[$fld['name']], 'autocomplete');
551      }      }
552        $disabled = $tid ? ($fld['common'] ? 1 : 0) : 0;
553      $form['configured_flds'][$key]['name'] = array(      $form['configured_flds'][$key]['name'] = array(
554        '#type' => 'markup',        '#type' => 'markup',
555        '#value' => $fld['name'],        '#value' => $fld['name'],
# Line 559  function biblio_admin_types_edit_form() Line 560  function biblio_admin_types_edit_form()
560        '#default_value' => $fld['title'],        '#default_value' => $fld['title'],
561        '#size' => 15,        '#size' => 15,
562        '#weight' => $fld['weight'],        '#weight' => $fld['weight'],
563        '#disabled' => $tid ? ($fld['common'] ? 1 : 0) : 0        '#disabled' => $disabled
564      );      );
565      $form['configured_flds'][$key]['hint'] = array(      $form['configured_flds'][$key]['hint'] = array(
566        '#type' => 'textfield',        '#type' => 'textfield',
567        '#default_value' => $fld['hint'],        '#default_value' => $fld['hint'],
568        '#size' => 20,        '#size' => 20,
569        '#weight' => $fld['weight'],        '#weight' => $fld['weight'],
570        '#disabled' => $tid ? ($fld['common'] ? 1 : 0) : 0        '#disabled' => $disabled
571      );      );
572      $form['configured_flds'][$key]['weight'] = array(      $form['configured_flds'][$key]['weight'] = array(
573        '#type' => 'textfield',        '#type' => 'textfield',
574        '#default_value' => $fld['weight'],        '#default_value' => $fld['weight'],
575        '#size' => 2,        '#size' => 2,
576        '#weight' => $fld['weight'],        '#weight' => $fld['weight'],
577        //'#disabled' => $tid ? ($fld['common'] ? 1 : 0) : 0        //'#disabled' => $disabled
578      );      );
579      $form['configured_flds'][$key]['checkboxes'] = array(      $form['configured_flds'][$key]['checkboxes'] = array(
580        '#type' => 'checkboxes',        '#type' => 'checkboxes',
581        '#options' => $options,        '#options' => $options,
582        '#default_value' => $def_values[$fld['name']],        '#default_value' => $def_values[$fld['name']],
583        '#weight' => $fld['weight'],        '#weight' => $fld['weight'],
584        //'#disabled' => $tid ? ($fld['common'] ? 1 : 0) : 0        //'#disabled' => $disabled
585      );      );
586      $form['configured_flds'][$key]['ftdid'] = array(      $form['configured_flds'][$key]['ftdid'] = array(
587        '#type' => '#value',        '#type' => '#value',
# Line 593  function biblio_admin_types_edit_form() Line 594  function biblio_admin_types_edit_form()
594                          '#options' => $contrib_options,                          '#options' => $contrib_options,
595          '#size' => min(count($contrib_options), 4),          '#size' => min(count($contrib_options), 4),
596          '#multiple' => true,          '#multiple' => true,
597          '#default_value' => _biblio_get_auth_types($fld['fid'], $tid),          '#default_value' => _biblio_get_auth_types($fld['fid'], $disabled ? 0 : $tid),
598          '#disabled' => $tid ? ($fld['common'] ? 1 : 0) : 0          '#disabled' => $disabled
599        );        );
600      }      }
601    }    }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.2