updated view_send, vews_php, nodeformcols, email_registratio

This commit is contained in:
Bachir Soussi Chiadmi
2016-11-05 16:53:56 +01:00
parent 0bb339fc99
commit 3b6c7b914d
20 changed files with 318 additions and 130 deletions

View File

@@ -19,7 +19,7 @@ function nfcbiblio_nodeformcols_variants_alter(&$variants, $type) {
WHERE tid >= :tid
AND visible = :visible
ORDER BY weight ASC', array(':tid' => 0, ':visible' => 1));
while ($option = db_fetch_object($res)) {
while ($option = $res->fetchObject()) {
$variants[$option->tid] = $option->name;
}
}
@@ -35,8 +35,8 @@ function _nfcbiblio_top_visible_type() {
return db_query_range("SELECT tid
FROM {biblio_types}
WHERE visible = :visible
AND tid> = :tid>
ORDER BY weight ASC", array(':visible' => 1, ':tid>' => 0))->fetchField();
AND tid >= :tid
ORDER BY weight ASC", 0, 1, array(':visible' => 1, ':tid' => 0))->fetchField();
}
/**