You are here

function pm_attribute_edit in Drupal PM (Project Management) 7

Define attribute edit form.

1 string reference to 'pm_attribute_edit'
pm_menu in ./pm.module
Implements hook_menu().

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);
}