function tripal_stock_back_to_stock_button

1.x tripal_stock-secondary_tables.inc tripal_stock_back_to_stock_button($form_state, $nid)

Related topics

3 string references to 'tripal_stock_back_to_stock_button'

File

tripal_stock/includes/tripal_stock-secondary_tables.inc, line 12
@todo Add file header description

Code

function tripal_stock_back_to_stock_button($form_state, $nid) {
  $form = array();

  $form['nid'] = array(
    '#type' => 'hidden',
    '#value' => $nid
  );

  $form["submit-back"] = array(
    '#type' => 'submit',
    '#value' => t('Back to Stock')
  );

  return $form;
}