You are here

function flag_lists_block_configure in Flag Lists 7

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_block_configure()

Implements hook_block_configure().

File

./flag_lists.module, line 710
The Flag Lists module.

Code

function flag_lists_block_configure($delta = '') {
  $form = array();
  switch ($delta) {
    case 'flag_lists':
      $form = array(
        'create_lists' => array(
          '#type' => 'checkbox',
          '#title' => t('Show link to add new list'),
          '#default_value' => variable_get('flag_lists_create_lists', 0),
          '#description' => t('Checking this adds a link to the create new list form.'),
        ),
        'ops' => array(
          '#type' => 'checkbox',
          '#title' => t('Show edit and delete links'),
          '#default_value' => variable_get('flag_lists_ops', 0),
          '#description' => t('Checking this appends edit and delete links to each list name for users with access.'),
        ),
        'include_flags' => array(
          '#type' => 'checkbox',
          '#title' => t('Include flag module flags'),
          '#default_value' => variable_get('flag_lists_include_flags', 0),
          '#description' => t('Checking this will append flag module flags to the list of lists.'),
        ),
      );
      break;
  }
  return $form;
}