function pm_attribute_edit in Drupal PM (Project Management) 7
Define attribute edit form.
File
- ./
pm.admin.inc, line 371 - List functions for the Project Management module.
Code
function pm_attribute_edit($form, $form_state, $aid) {
$attribute = array();
if ($aid) {
$result = db_select('pmattribute', 'sa')
->fields('sa')
->condition('sa.aid', $aid)
->execute();
$attribute = $result
->fetchObject();
}
return pm_attribute_form($attribute);
}