You are here

function draggableviews_admin in DraggableViews 7

Same name and namespace in other branches
  1. 6.3 draggableviews.module \draggableviews_admin()
  2. 6 draggableviews.module \draggableviews_admin()
  3. 6.2 draggableviews.module \draggableviews_admin()

Implements hook_admin().

1 string reference to 'draggableviews_admin'
draggableviews_menu in ./draggableviews.module
Implements hook_menu().

File

./draggableviews.module, line 45
Draggableviews module provides a style plugin for views. With this plugin rows become draggable and can be organized in complex structures.

Code

function draggableviews_admin($form, &$form_state) {
  $form['draggableviews_repaired_msg'] = array(
    '#type' => 'textfield',
    '#title' => t('The message that appears after a broken structure has been repaired'),
    '#default_value' => variable_get('draggableviews_repaired_msg', 'The structure was broken. It has been repaired.'),
    '#size' => 50,
    '#description' => t('Everytime a broken structure has been repaired this message will be shown. Per definition the structure cannot be broken after it has been repaired. Leave blank if you don\'t want to show any message.'),
    '#required' => FALSE,
  );
  return system_settings_form($form);
}