function pmtask_validate in Drupal PM (Project Management) 7
Implements hook_validate().
File
- pmtask/
pmtask.module, line 639
Code
function pmtask_validate(&$node) {
if ($node->nid == $node->parent_nid && $node->parent_nid) {
form_set_error('parent_nid', t('Impossible to assign itself as parent.'));
}
}