You are here

function og_add_users in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_add_users()
  2. 5.2 og.module \og_add_users()
  3. 5.3 og.module \og_add_users()
  4. 5.7 og.module \og_add_users()
  5. 6.2 og.pages.inc \og_add_users()
  6. 6 og.module \og_add_users()
1 string reference to 'og_add_users'
og_menu in ./og.module

File

./og.module, line 888

Code

function og_add_users($gid) {
  $form['og_names'] = array(
    '#type' => 'textarea',
    '#title' => t('List of users'),
    '#rows' => 5,
    '#cols' => 70,
    // no autocomplete b/c user_autocomplete can't handle commas like taxonomy. pls improve core.
    // '#autocomplete_path' => 'user/autocomplete',
    '#description' => t('Add one or more usernames in order to associate users with this group. Multiple usernames should be separated by a comma.'),
  );
  $form['op'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $gid,
  );
  return $form;
}