Posts Tagged ‘drupal’

ebooks of drupal 6 and drupal 7 Pro_Drupal_7_Development_3rd_Edition Pro Drupal Development 6 Learning.Drupal.6.Module.Development.May.2008

drupal 6 basic form <?php function test_myform($form_state) { // Access log settings: $options = array(‘1’ => t(‘Enabled’), ‘0’ => t(‘Disabled’)); $form[‘access’] = array( ‘#type’ => ‘fieldset’, ‘#title’ => t(‘Access log settings’), ‘#tree’ => TRUE, ); $form[‘access’][‘log’] = array( ‘#type’ => ‘radios’, ‘#title’ => t(‘Log’), ‘#default_value’ => variable_get(‘log’, 0), ‘#options’ => $options, ‘#description’ => t(‘The log.’), […]