function og_invite_form in Organic groups 6
Same name and namespace in other branches
- 5.8 og.module \og_invite_form()
- 5 og.module \og_invite_form()
- 5.2 og.module \og_invite_form()
- 5.3 og.module \og_invite_form()
- 5.7 og.module \og_invite_form()
- 6.2 og.pages.inc \og_invite_form()
File
- ./
og.module, line 848
Code
function og_invite_form($form_state, $node) {
$bc = og_get_breadcrumb($node);
drupal_set_breadcrumb($bc);
$max = variable_get('og_email_max', 10);
$form['mails'] = array(
'#type' => 'textarea',
'#title' => t('Email addresses or usernames'),
'#description' => t('Enter up to %max email addresses or usernames. Separate multiple addresses by commas or new lines. Each person will receive an invitation message from you.', array(
'%max' => $max,
)),
);
$form['pmessage'] = array(
'#type' => 'textarea',
'#title' => t('Personal message'),
'#description' => t('Optional. Enter a message which will become part of the invitation email.'),
);
$form['op'] = array(
'#type' => 'submit',
'#value' => t('Send invitation'),
);
$form['gid'] = array(
'#type' => 'value',
'#value' => $node->nid,
);
return $form;
}