You are here

function menu_block_configure_form_follow_validate in Menu Block 7.2

Same name and namespace in other branches
  1. 6.2 menu_block.admin.inc \menu_block_configure_form_follow_validate()
  2. 7.3 menu_block.admin.inc \menu_block_configure_form_follow_validate()

Validates the follow element of the block configuration form.

1 string reference to 'menu_block_configure_form_follow_validate'
menu_block_configure_form in ./menu_block.admin.inc
Returns the configuration form for a menu tree.

File

./menu_block.admin.inc, line 435
Provides infrequently used functions and hooks for menu_block.

Code

function menu_block_configure_form_follow_validate($element, &$form_state) {

  // The value of "follow" stored in the database/config array is either FALSE
  // or the value of the "follow_parent" form element.
  if ($form_state['values']['follow'] && !empty($form_state['values']['follow_parent'])) {
    $form_state['values']['follow'] = $form_state['values']['follow_parent'];
  }
}