You are here

function uc_product_is_product_form in Ubercart 6.2

Same name and namespace in other branches
  1. 8.4 uc_product/uc_product.module \uc_product_is_product_form()
  2. 7.3 uc_product/uc_product.module \uc_product_is_product_form()

Determines whether or not a given form array is a product node form.

Parameters

$form: The form array to examine.

Return value

TRUE or FALSE indicating whether or not the form is a product node form.

6 calls to uc_product_is_product_form()
uc_flatrate_form_alter in shipping/uc_flatrate/uc_flatrate.module
Implements hook_form_alter().
uc_product_form_alter in uc_product/uc_product.module
Implements hook_form_alter().
uc_quote_form_alter in shipping/uc_quote/uc_quote.module
Implements hook_form_alter().
uc_ups_form_alter in shipping/uc_ups/uc_ups.module
Implements hook_form_alter().
uc_usps_form_alter in shipping/uc_usps/uc_usps.module
Implements hook_form_alter().

... See full list

File

uc_product/uc_product.module, line 1677
The product module for Ubercart.

Code

function uc_product_is_product_form($form) {
  return $form['#id'] == 'node-form' && uc_product_is_product($form['#node']);
}