| 1 |
<?php |
<?php |
| 2 |
// $Id: nodeprofile_workflow_ng.inc,v 1.1.2.2 2007/09/15 11:49:21 fago Exp $ |
// $Id: nodeprofile_workflow_ng.inc,v 1.1.2.3 2008/02/27 17:19:48 fago Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 21 |
); |
); |
| 22 |
} |
} |
| 23 |
|
|
|
/* |
|
|
* Implementation of a worklfow-ng action: enables revision moderation |
|
|
*/ |
|
| 24 |
function nodeprofile_user_has_profile_condition($user, $settings) { |
function nodeprofile_user_has_profile_condition($user, $settings) { |
| 25 |
$node = nodeprofile_load($settings['type'], $user->uid); |
$node = nodeprofile_load($settings['type'], $user->uid); |
| 26 |
return (bool)$node; |
return (bool)$node; |
| 27 |
} |
} |
| 28 |
|
|
|
/* |
|
|
* Implementation of a worklfow-ng action: disables revision moderation |
|
|
*/ |
|
| 29 |
function nodeprofile_user_has_profile_condition_form($settings) { |
function nodeprofile_user_has_profile_condition_form($settings) { |
| 30 |
$form['type'] = array( |
$form['type'] = array( |
| 31 |
'#type' => 'select', |
'#type' => 'select', |