You are here

function jeditable_admin_settings in jEditable inline content editing 7

Same name and namespace in other branches
  1. 6 jeditable.module \jeditable_admin_settings()
1 string reference to 'jeditable_admin_settings'
jeditable_menu in ./jeditable.module
Implements hook_menu().

File

./jeditable.module, line 41
jeditable.module TODO: Provides integration between Drupal and the jEditable jquery plugin @todo: Datepicker support @todo: Ajax upload support @todo: Radioboxes/checkboxes support @todo: add required handler for date @todo: add compatibility for…

Code

function jeditable_admin_settings() {
  $form['jeditable_create_new_revisions'] = array(
    '#type' => 'checkbox',
    '#title' => t('Create Node Revisions'),
    '#default_value' => variable_get('jeditable_create_new_revisions', 0),
    '#description' => t('If enabled, each time a field is changed a new node revision will be generated. This will generate a very full revision table if jeditable is used extensively, so use with caution'),
  );
  $form['jeditable_empty_placeholder'] = array(
    '#type' => 'textfield',
    '#title' => t('Empty field placeholder'),
    '#default_value' => variable_get('jeditable_empty_placeholder', '--'),
    '#description' => t('Text, that will be shown if field is empty'),
  );
  return system_settings_form($form);
}