function tripal_feature_is_obsolete_form

1.x tripal_feature-secondary_tables.inc tripal_feature_is_obsolete_form($node, $stock_id)

Implements Hook_form() Handles setting the is_obsolete property of stocks

Related topics

File

tripal_feature/includes/tripal_feature-secondary_tables.inc, line 204
@todo Add file header description

Code

function tripal_feature_is_obsolete_form($node, $stock_id) {

  $form['make_obsolete'] = array(
    '#type' => 'submit',
    '#value' => t('Mark Stock as Obsolete')
  );

  $form['make_obsolete_stock_id'] = array(
    '#type' => 'value',
    '#value' => $stock_id,
    '#required' => TRUE
  );

  return $form;
}