/[drupal]/contributions/modules/project_issue_file_test/pift.project.inc
ViewVC logotype

Contents of /contributions/modules/project_issue_file_test/pift.project.inc

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


Revision 1.3 - (show annotations) (download) (as text)
Fri May 8 04:54:30 2009 UTC (6 months, 2 weeks ago) by boombatower
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-BETA1, HEAD
Branch point for: DRUPAL-7--1
Changes since 1.2: +10 -5 lines
File MIME type: text/x-php
#456984: correct branch filter.
1 <?php
2 // $Id: pift.project.inc,v 1.2 2009/03/23 22:21:41 boombatower Exp $
3 /**
4 * @file
5 * Provide project related functions.
6 *
7 * Copyright 2008-2009 by Jimmy Berry ("boombatower", http://drupal.org/user/214218)
8 */
9
10 /**
11 * Check if the project has testing enabled.
12 *
13 * @param integer $pid Project NID.
14 * @return boolean Project has testing enabled.
15 */
16 function pift_project_enabled($pid) {
17 static $statuses = array();
18
19 if (!isset($statuses[$pid])) {
20 $nid = db_result(db_query('SELECT pid
21 FROM {pift_project}
22 WHERE pid = %d', $pid));
23 $statuses[$pid] = ($nid !== FALSE);
24 }
25 return $statuses[$pid];
26 }

  ViewVC Help
Powered by ViewVC 1.1.2