checkboxes

Update multiple checkboxes in a N:M relationship

  1. // Save the pods that were enabled for this room
  2. // $vars['pods'] has values that come from a form postback - from a field of type checkboxes
  3. // in the database, a room(rid) can have zero or multipl

ENKNOT: Figuring out FAPI

  1. function email_name_admin_settings(){
  2.  
  3.  
  4.  
  5.       $values = unserialize(variable_get('email_name_edit_roles', serialize(array())));
  6.       sort($values);
  7.       dvm($values, 'SET UP');
  8.  
  9.       $form

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 =>

Example of displaying multiple checkboxes, with one value selected

  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",

Broken FAPI?

  1.   $node_types = node_get_types('names');
  2.   $form['tqf']['types'] = array(
  3.     '#title' => t('Nodes'),
  4.     '#type' => 'checkboxes',
  5.     '#options' => $node_types,
Syndicate content