/[drupal]/contributions/modules/nodefamily/nodefamily.module
ViewVC logotype

Diff of /contributions/modules/nodefamily/nodefamily.module

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

revision 1.31, Sun Apr 29 14:12:37 2007 UTC revision 1.32, Thu Oct 4 08:53:34 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: nodefamily.module,v 1.30 2007/03/25 13:41:10 fago Exp $  // $Id: nodefamily.module,v 1.31 2007/04/29 14:12:37 fago Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 422  function nodefamily_get_parent_types($ty Line 422  function nodefamily_get_parent_types($ty
422  function nodefamily_get_child_types($typename = NULL) {  function nodefamily_get_child_types($typename = NULL) {
423    $relations = variable_get('nodefamily_relations', array());    $relations = variable_get('nodefamily_relations', array());
424    
425    if ($typename == NULL || array_key_exists($typename, $relations)) {    if (array_key_exists($typename, $relations)) {
426      return array_keys($relations[$typename]);      return array_keys($relations[$typename]);
427    }    }
428      else if ($typename == NULL) {
429        return array_keys(call_user_func_array('array_merge', $relations));
430      }
431    else {    else {
432      return array();      return array();
433    }    }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.2