home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (uc_product_kit.admin.inc)

This example Drupal source code file (uc_product_kit.admin.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

are, array, change, component, customers, form, how, kit, kits, many, may, only, php, products

The uc_product_kit.admin.inc Drupal example source code

// $Id: uc_product_kit.admin.inc,v 2010/07/12 01:29:11 tr Exp $

 * @file
 * Defines administrative pages and form for the product kit module.

 * Build the product kit settings form.
 * @ingroup forms
function uc_product_kit_settings_form() {
  $form = array();

  $form['uc_product_kit_mutable'] = array(
    '#type' => 'radios',
    '#title' => t('Product kit cart display'),
    '#options' => array(
      UC_PRODUCT_KIT_UNMUTABLE_NO_LIST => t('As a unit. Customers may only change how many kits they are buying. Do not list component products.'),
      UC_PRODUCT_KIT_UNMUTABLE_WITH_LIST => t('As a unit. Customers may only change how many kits they are buying. List component products.'),
      UC_PRODUCT_KIT_MUTABLE => t('As individual products. Customers may add or remove kit components at will. Discounts entered below are not applied to the kit price'),
    '#default_value' => variable_get('uc_product_kit_mutable', 0),
    '#weight' => -5,

  return system_settings_form($form);

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal uc_product_kit.admin.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.