form

formulario

  1. <code>
  2. <?php
  3.  
  4. /**
  5. * Formulario que permite guardar las partidas jugadas
  6. * Form to save the game.
  7. */
  8.  
  9. function alta_partida_form($node){
  10.         $form['alta_partida'] = array (

formulario

  1. <code>
  2. <?php
  3.  
  4. /**
  5. * Formulario que permite guardar las partidas jugadas
  6. * Form to save the game.
  7. */
  8.  
  9. function alta_partida_form($node){
  10.         $form['alta_partida'] = array (

removing the preview button (and delete button)

  1. function sitehelper_form_alter($form_id, &$form) {
  2.    global $user;
  3.    switch ($form_id) {
  4.       case 'linfo_node_form':
  5.       if($user->uid != '1') {
  6.          unset($form['preview']);

A working form with submit and validation

  1. /**
  2.  * Import rate file panel
  3.  */
  4. function uc_usps_table_import() {
  5.   $form = array();
  6.   $form['uc_usps_table_import'] = array('#type' => 'fieldset',
Syndicate content