You are here

function accountmenu_form_alter in Account menu 6

Same name and namespace in other branches
  1. 7 accountmenu.module \accountmenu_form_alter()

Implementation of hook_form_alter.

File

./accountmenu.module, line 233
accountmenu.module Provide a dynamic Log in/My account/Log out account menu

Code

function accountmenu_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'menu_edit_item' && $form['menu']['options']['#value']['accountmenu_link_title']) {
    $form['menu']['link_title']['#default_value'] = $form['menu']['options']['#value']['accountmenu_link_title'];
  }
}