updated nodeformcols module to 7.x-1.0 (2014-jan-15)

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-20 19:39:05 +02:00
parent 0cd6215a32
commit 9afc105c7e
9 changed files with 23 additions and 256 deletions

View File

@@ -14,14 +14,14 @@
* @return void
*/
function nodeformcols_nodeformcols_base_form_alter(&$form, $variant) {
$using_captcha = db_query("SELECT COUNT(module)
FROM {captcha_points} WHERE form_id = :form_id", array(':form_id' => array(
$using_captcha = db_query("SELECT COUNT(captcha_type)
FROM {captcha_points} WHERE form_id = :form_id", array(
':form_id' => $form['#node']->type . '_node_form',
)))->fetchField();
))->fetchField();
if ($using_captcha) {
$form['captcha'] = array(
'#title' => t('CAPTCHA'),
'#weight' => $form['buttons']['#weight'] - 1,
'#weight' => $form['actions']['#weight'] - 1,
);
}
}