Forms

Hook Form Alter Module

  1. <?php
  2. /**
  3. * Display help and module information
  4. * @param path which path of the site we're displaying help
  5. * @param arg array that holds the current path as would be returned from arg() function

In form alter, the required DOES work but the multiple doesn't

  1. function frankp_horoscope_form(&$node) {
  2.         $type = node_get_types('type', $node);
  3.        
  4.         $form['taxonomy'][FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS] = taxonomy_form(FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS);
  5.        

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

template.php for D5 theming of UC checkout and cart

  1. /**
  2.  * Overriding theme_uc_cart_block_content() to hide
  3.  * TOTAL from Wholesalers
  4.  *
  5.  * Theme the shopping cart block content.
  6.  */
  7. function phptemplate_uc_cart_block_content() {
  8.   global $user

Fix for Fix for Fix for Disable a form using jQuery, then Renable with a button

  1. Drupal.behaviors.enableSignupEditForm = function(context) {
  2.   var $button = $('#edit-update-signup', context).click(enableForm);
  3.   var $form_elements = $button.parents('form:first').find('input, tex

Fix for Fix for Disable a form using jQuery, then Renable with a button

  1. Drupal.behaviors.enableSignupEditForm = function(context) {
  2.   var $button = $('#edit-update-signup', context).click(enableForm);
  3.   var $form_elements = $button.parents('form:first').find('input, tex

Trouble with default values on form fields within fieldsets

  1. /* Only pasted the revelant code here for readability */
  2.  
  3. class views_accordion_style_plugin extends views_plugin_style {
  4. /**
  5.    * Set default options
  6.    */
  7.   function option_definition() {

Fix for Disable a form using jQuery, then Renable with a button

  1. Drupal.behaviors.enableSignupEditForm = function(context) {
  2.   var $button = $('#edit-update-signup', context).click(changeValues);
  3.   var $form = $button.parents('form:first');

Fix for Disable a form using jQuery, then Renable with a button

  1. Drupal.behaviors.enableSignupEditForm = function(context) {
  2.   var $button = $('#edit-update-signup', context).click(changeValues);
Syndicate content