You are here

function og_menu_single_block_configure in OG Menu Single 7

Implements hook_block_configure().

File

./og_menu_single.module, line 343
Creates a single menu per organic group on a site.

Code

function og_menu_single_block_configure($delta = '') {

  // This example comes from node.module.
  $form = array();
  if ($delta == 'menu') {
    $form['settings']['og_menu_single_block_menu_depth'] = array(
      '#title' => t('Depth'),
      '#type' => 'select',
      '#options' => array(
        0 => t('All'),
        1 => 1,
        2 => 2,
        3 => 3,
        4 => 4,
        5 => 5,
        6 => 6,
        7 => 7,
      ),
      '#default_value' => variable_get('og_menu_single_block_menu_depth', 0),
      '#description' => t('Select how deep/how many levels of the menu to display.'),
    );
  }
  return $form;
}