You are here

function _hs_menu_apply_config in Hierarchical Select 6.3

Same name and namespace in other branches
  1. 7.3 modules/hs_menu.module \_hs_menu_apply_config()

Helper function to apply the HS config to a form item.

1 call to _hs_menu_apply_config()
hs_menu_form_alter in modules/hs_menu.module
Implementation of hook_form_alter().

File

modules/hs_menu.module, line 213
Implementation of the Hierarchical Select API for the Menu module.

Code

function _hs_menu_apply_config(&$form, $exclude) {
  $form['#config'] = array(
    'module' => 'hs_menu',
    'params' => array(
      'exclude' => $exclude,
    ),
    'save_lineage' => 0,
    'enforce_deepest' => 0,
    'resizable' => variable_get('hs_menu_resizable', 1),
    'level_labels' => array(
      'status' => 0,
    ),
    'dropbox' => array(
      'status' => 0,
    ),
    'editability' => array(
      'status' => 0,
    ),
  );
}