Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @ingroup forms
- * @see
- * uc_product_forms()
- * uc_catalog_buy_it_now_form_validate()
- * uc_catalog_buy_it_now_form_submit()
- */
- function uc_catalog_buy_it_now_form($form_state, $node) {
- $form = array();
- $form['#validate'][] = 'uc_catalog_buy_it_now_form_validate';
- $form['#submit'][] = 'uc_catalog_buy_it_now_form_submit';
- $form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
- $form['submit'] = array(
- '#type' => 'submit',
- '#value' => variable_get('uc_teaser_add_to_cart_text', t('Add to cart')),
- '#id' => 'edit-submit-'. $node->nid,
- '#attributes' => array(
- 'class' => 'list-add-to-cart',
- ),
- );
- uc_form_alter($form, $form_state, __FUNCTION__);
- return $form;
- }
- /**
- * UBERCART ALTER BUY IT NOW BUTTON
- */
- function hbhelpers_form_uc_catalog_buy_it_now_form_alter(&$form, &$form_state) {
- $form['submit']['#value']= t('Yes i want one');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement