You are here

function uc_repeater_form_alter in Ubercart 5

File

uc_repeater/uc_repeater.module, line 45
Allows a multisite setup to share changes to the catalog.

Code

function uc_repeater_form_alter($form_id, &$form) {
  $node = $form['#node'];
  if (is_object($node) && $form_id == $node->type . '_node_form' && in_array($node->type, module_invoke_all('product_types'))) {
    $form['uc_repeater_export'] = array(
      '#type' => 'checkbox',
      '#title' => t('Export to other sites'),
      '#default_value' => 0,
    );
  }
}