ajax_comments.admin.inc in AJAX Comments 7
Same filename and directory in other branches
AJAX comments settings form.
File
ajax_comments.admin.incView source
<?php
/**
* @file
* AJAX comments settings form.
*/
/**
* AJAX comments settings form.
*/
function ajax_comments_settings() {
$form['ajax_comments_node_types'] = array(
'#title' => 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);
}
Functions
Name | Description |
---|---|
ajax_comments_settings | AJAX comments settings form. |