Mercurial > defr > drupal > core
comparison modules/node/node.module @ 3:165d43f946a8 6.1
Drupal 6.1
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:29:21 +0100 |
parents | c1f4ac30525a |
children | 2427550111ae |
comparison
equal
deleted
inserted
replaced
2:85b5b336180c | 3:165d43f946a8 |
---|---|
1 <?php | 1 <?php |
2 // $Id: node.module,v 1.947.2.2 2008/02/13 14:10:22 goba Exp $ | 2 // $Id: node.module,v 1.947.2.3 2008/02/27 17:12:58 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * The core that allows content to be submitted to the site. Modules and scripts may | 6 * The core that allows content to be submitted to the site. Modules and scripts may |
7 * programmatically submit nodes using the usual form API pattern. | 7 * programmatically submit nodes using the usual form API pattern. |
714 $arguments[] = $param; | 714 $arguments[] = $param; |
715 } | 715 } |
716 elseif (is_array($param)) { | 716 elseif (is_array($param)) { |
717 // Turn the conditions into a query. | 717 // Turn the conditions into a query. |
718 foreach ($param as $key => $value) { | 718 foreach ($param as $key => $value) { |
719 $cond[] = 'n.'. db_escape_string($key) ." = '%s'"; | 719 $cond[] = 'n.'. db_escape_table($key) ." = '%s'"; |
720 $arguments[] = $value; | 720 $arguments[] = $value; |
721 } | 721 } |
722 $cond = implode(' AND ', $cond); | 722 $cond = implode(' AND ', $cond); |
723 } | 723 } |
724 else { | 724 else { |