t('Content types'), '#type' => 'checkboxes', '#description' => t('Select node types you want to activate ajax comments on. If you select nothing, AJAX Comments will be enabled everywhere.'), '#default_value' => variable_get('ajax_comments_node_types', array()), '#options' => node_type_get_names(), ); $form['ajax_comments_notify'] = array( '#title' => t('Notification Message'), '#type' => 'checkbox', '#description' => t('Add notification message to comment when posted.'), '#default_value' => variable_get('ajax_comments_notify', ''), ); $form['ajax_comments_disable_scroll'] = array( '#title' => t('Disable scrolling'), '#type' => 'checkbox', '#description' => t('Disable the scroll events'), '#default_value' => variable_get('ajax_comments_disable_scroll', ''), ); $form['ajax_comments_reply_autoclose'] = array( '#title' => t('Autoclose reply'), '#type' => 'checkbox', '#description' => t('Autoclose any opened reply forms'), '#default_value' => variable_get('ajax_comments_reply_autoclose', ''), ); return system_settings_form($form); }