function merci_rro_override_delete in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
1 string reference to 'merci_rro_override_delete'
- merci_rro_admin_page in modules/
merci_rro/ merci_rro.admin.inc - Menu callback; rule override administration.
File
- modules/
merci_rro/ merci_rro.admin.inc, line 50 - Admin section functions for MERCI Role Rule Override
Code
function merci_rro_override_delete(&$form_state, $type_name, $rid) {
$role = merci_rro_role_name_from_rid($rid);
$form = array();
$form['merci_rro_type'] = array(
'#type' => 'hidden',
'#value' => $type_name,
);
$form['merci_rro_rid'] = array(
'#type' => 'hidden',
'#value' => $rid,
);
$form['merci_rro_sure'] = array(
'#type' => 'markup',
'#value' => '<p>' . t('Are you sure you want to delete the override for role ') . '<i>' . check_plain($role) . '</i>' . t(' on type ') . '<i>' . check_plain($type_name) . '</i>?</p>',
);
$form['merci_rro_yes'] = array(
'#type' => 'submit',
'#value' => t('Delete'),
);
$form['merci_rro_no'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
);
$form['#submit'] = array(
'merci_rro_delete_submit',
);
return $form;
}