You are here

function theme_og_menu_node_form in Organic Groups Menu (OG Menu) 6

Same name and namespace in other branches
  1. 6.2 og_menu.module \theme_og_menu_node_form()
  2. 7.2 og_menu.module \theme_og_menu_node_form()

Theme function for node form.

File

./og_menu.module, line 127
Integrates Menu with Organic Groups. Lots of menu forms duplication in OG context.

Code

function theme_og_menu_node_form($form) {
  $menus = og_menu_get_menus($groups);
  foreach ($menus as $menu) {
    $settings[$menu['menu_name']] = $menu['gid'];
  }
  drupal_add_js(array(
    'og_menu' => $settings,
  ), 'setting');
  drupal_add_js(drupal_get_path('module', 'og_menu') . '/og_menu.js');
}