/[drupal]/contributions/modules/nodeprofile/nodeprofile_workflow_ng.inc
ViewVC logotype

Diff of /contributions/modules/nodeprofile/nodeprofile_workflow_ng.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.3, Wed Feb 27 17:19:48 2008 UTC revision 1.1.2.4, Sun Mar 2 10:34:32 2008 UTC
# Line 1  Line 1 
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
# Line 21  function nodeprofile_condition_info() { Line 21  function nodeprofile_condition_info() {
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',

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.2