Define
Fri, 30/06/2006 - 15:52 — admin
function legal_display_fields() {
$form = array();
$conditions = legal_get_conditions();
$form['id'] = array(
'#type' => 'value',
'#value' => $conditions['id'],
);
$form['legal'] = array(
'#type' => 'fieldset',
'#title' => t('Terms and Conditions of Use'),
'#weight' => 29,
);
$form['legal']['conditions'] = array(
'#type' => 'textarea',
'#title' => t('Terms & Conditions'),
'#default_value' => $conditions['conditions'],
'#value' => $conditions['conditions'],
'#rows' => 10,
'#weight' => 0,
'#attributes' => array('readonly' => ''),
);
$form['legal']['legal_accept'] = array(
'#type' => 'checkbox',
'#title' => t('Accept Terms & Conditions of Use'),
'#default_value' => 0,
'#weight' => 50,
'#required' => TRUE,
);
$form['#after_build'] = array('legal_preview');
$form['preview'] = array(
'#type' => 'button',
'#value' => t('Preview'),
);
$form['save'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
$output = drupal_get_form('legal_administration', $form);
return $output;
}
Recent comments
28 sec ago
6 hours 15 min ago
7 hours 21 min ago
8 hours 55 min ago
20 hours 43 min ago
23 hours 1 min ago
1 day 25 min ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago