You are here

function uc_dropdown_attributes_hide_attribute in Dropdown Attributes 8

Hide attribute.

Parameters

array $form: Form array.

int $aid: Attribute ID.

6 calls to uc_dropdown_attributes_hide_attribute()
uc_dropdown_attributes_order_attribute_display in ./uc_dropdown_attributes.module
Alter display of attributes on the order page.
_uc_dropdown_attributes_class_build in ./uc_dropdown_attributes.module
Form build for classes.
_uc_dropdown_attributes_kit_build in ./uc_dropdown_attributes.module
Form build for product kits.
_uc_dropdown_attributes_order_class_build in ./uc_dropdown_attributes.module
Form build for classes for the order page.
_uc_dropdown_attributes_order_product_build in ./uc_dropdown_attributes.module
Form build for products for the order page.

... See full list

File

./uc_dropdown_attributes.module, line 299
A module for uc_dropdown_attributes.

Code

function uc_dropdown_attributes_hide_attribute(&$form, $aid) {
  $form['attributes'][$aid]['#attributes']['style'] = 'display:none';
  unset($form['attributes'][$aid]['#title']);
  $form['attributes'][$aid]['#description'] = '';
}