function pm_attribute_delete_submit in Drupal PM (Project Management) 7
Submit function for attribute delete form.
File
- ./
pm.admin.inc, line 456 - List functions for the Project Management module.
Code
function pm_attribute_delete_submit($form, &$form_state) {
if ($form_state['values']['aid']) {
$query = db_delete('pmattribute')
->condition('aid', $form_state['values']['aid'])
->execute();
drupal_set_message(t('Project Management attribute deleted'));
if (isset($form_state['values']['destination'])) {
$destination = $form_state['values']['destination'];
}
else {
$destination = 'pm/attributes';
}
drupal_goto($destination);
}
}