You are here

function og_ui_admin_add_user_ajax_callback in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og_ui/og_ui.admin.inc \og_ui_admin_add_user_ajax_callback()

AJAX callback to attach the group membership type fields to the form.

Since the controlling logic for populating the form is in the form builder function, all we do here is select the element and return it to be updated.

1 string reference to 'og_ui_admin_add_user_ajax_callback'
og_ui_add_users in og_ui/og_ui.admin.inc
Add users to group form.

File

og_ui/og_ui.admin.inc, line 131
Admin settings for Organic groups module.

Code

function og_ui_admin_add_user_ajax_callback(array $form, array &$form_state) {
  return $form['membership_fields'];
}