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

Diff of /contributions/modules/og_blueprints/og_blueprints.module

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

revision 1.1.2.18, Mon Sep 15 18:41:36 2008 UTC revision 1.1.2.19, Mon Sep 15 18:43:14 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: og_blueprints.module,v 1.1.2.13 2008/06/06 12:31:29 sdboyer Exp $  // $Id: og_blueprints.module,v 1.1.2.18 2008/09/15 18:41:36 sdboyer Exp $
3    
4  /**  /**
5   * @file og_blueprints.module   * @file og_blueprints.module
# Line 350  class og_bundle_release extends og_bundl Line 350  class og_bundle_release extends og_bundl
350    function __construct($group_type, $release_id) {    function __construct($group_type, $release_id) {
351      $this->grouptype = $group_type;      $this->grouptype = $group_type;
352      $this->release_id = $release_id;      $this->release_id = $release_id;
353      if ($result = db_query("SELECT b.bid, r.vid FROM {og_bundle} AS b INNER JOIN {og_bundle_revision} AS r ON b.bid = r.bid WHERE b.grouptype = '%s' AND r.release_id = %d", $this->grouptype, $this->release_id)) {      list($this->bid, $this->vid) = array_values(db_fetch_array(db_query(
354        list($this->bid, $this->vid) = array_values(db_fetch_array($result));        "SELECT b.bid, r.vid FROM {og_bundle} AS b INNER JOIN {og_bundle_revision} AS r ON b.bid = r.bid WHERE b.grouptype = '%s' AND r.release_id = %d",
355      }        $this->grouptype, $this->release_id)));
356      $this->loadAllBlueprints();      $this->loadAllBlueprints();
357      $this->blueprints = array_filter($this->blueprints, array($this, 'filter_disabled')); // TODO should this be here? probably.      $this->blueprints = array_filter($this->blueprints, array($this, 'filter_disabled')); // TODO should this be here? probably.
358    }    }

Legend:
Removed from v.1.1.2.18  
changed lines
  Added in v.1.1.2.19

  ViewVC Help
Powered by ViewVC 1.1.2