fapi

xurizaemon's picture

drupal_render clearing default_value ... huh?

  1. function augforms_wall_invite_email_form($form_id, &$form_state = NULL) {
  2.   $num_invites = 5 ;
  3.   for ( $i = 0 ; $i < $num_invites ; $i++ ) {
  4.     $row = array() ;
  5.     $form['invite_name_'.$i] = arr

Fix for Fix for Fix for the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => t('Select From List'),
  4.                 '#options' => array(
  5.                     0=>'A',
  6.                     1=>'B',
  7.                     2=>'C',

Fix for jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

Fix for Fix for Example of displaying multiple checkboxes,alue selected with one v

  1. $form['option_occassions'] = array(
  2.    '#type' => 'checkboxes',
  3.   '#title' => t('Associated Occassions'),
  4.    '#options' => array(
  5.     1 => "Formal",
  6.     2 => "Social",
  7.     3 => "Xmas",
  8.     4 =>

Fix for Example of displaying multiple checkboxes,alue selected with one v

  1. $form['option_occassions'] = array(
  2.    '#type' => 'checkboxes',
  3.   '#title' => t('Associated Occassions'),
  4.    '#options' => array(
  5.     1 => "Formal",
  6.     2 => "Social",
  7.     3 => "Xmas",
  8.     4 =>

Fix for Imagefield widget includ error

  1. /**
  2.  * Form for creating initial nodequeue
  3.  */
  4. function create_feature_package_form() {
  5.   //dsm(module_invoke('imagefield', 'elements'));
  6.  
  7.   module_load_include('inc','imagefield','imagefield_

Imagefield widget includ error

  1. /**
  2.  * Form for creating initial nodequeue
  3.  */
  4. function create_feature_package_form() {
  5.   //dsm(module_invoke('imagefield', 'elements'));
  6.   include_once'../../contrib/filefield/filefield.module';

Fix for putting user values back into a form

  1. /* two page form.

Fix for Fix for the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => t('Select From List'),
  4.                 '#options' => array(
  5.                     0=>'A',
  6.                     1=>'B',
  7.                     2=>'C',
Syndicate content