function tripal_bulk_loader_delete_constant_set_form
2.x tripal_bulk_loader.constants.inc | tripal_bulk_loader_delete_constant_set_form($form, &$form_state, $node, $group_id) |
3.x tripal_bulk_loader.constants.inc | tripal_bulk_loader_delete_constant_set_form( |
1.x tripal_bulk_loader.constants.inc | tripal_bulk_loader_delete_constant_set_form($form_state, $node, $group_id) |
Delete a constant set (exposed fields in template)
Parameters
$form_state: The current state of the form
$node: The node to set constants for
$group_id: The constant set to delete
Return value
A form array to be rendered by drupal_get_form()
Related topics
1 string reference to 'tripal_bulk_loader_delete_constant_set_form'
- tripal_bulk_loader_menu in tripal_bulk_loader/
tripal_bulk_loader.module - Implements hook_menu().
File
- tripal_bulk_loader/
includes/ tripal_bulk_loader.constants.inc, line 558 - Manages the constants form added to the tripal bulk loader node form
Code
function tripal_bulk_loader_delete_constant_set_form($form, &$form_state, $node, $group_id) {
$form = array();
$form['nid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
$form['group_id'] = array(
'#type' => 'hidden',
'#value' => $group_id,
);
return confirm_form($form,
t('Are you sure you want to delete this constant set?'),
'node/' . $node->nid,
t('This action cannot be undone.'),
t('Delete'),
t('Cancel')
);
}