You are here

function floating_block_admin in Floating block 6

Same name and namespace in other branches
  1. 7 floating_block.admin.inc \floating_block_admin()

Form to config floating block settings.

1 string reference to 'floating_block_admin'
floating_block_menu in ./floating_block.module
Implementation of hook_menu().

File

./floating_block.admin.inc, line 11
Admin page callbacks for the floating_block module.

Code

function floating_block_admin() {
  $form = array();
  $form['floating_blocks'] = array(
    '#type' => 'textarea',
    '#title' => t('Floating block settings'),
    '#default_value' => _floating_block_admin_convert_array_to_text(variable_get('floating_blocks', array())),
    '#description' => t('Floating block configurations, one per line in the formation <code>[css selector]|[extra settings]</code>.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  return $form;
}