function nodejs_add_user_to_channel_form in Node.js integration 7
Same name and namespace in other branches
- 6 nodejs.module \nodejs_add_user_to_channel_form()
Form callback, add a user to a channel.
_state
Parameters
mixed $form:
Return value
array
1 string reference to 'nodejs_add_user_to_channel_form'
- nodejs_menu in ./
nodejs.module - Implements hook_menu().
File
- ./
nodejs.module, line 435
Code
function nodejs_add_user_to_channel_form($form, $form_state) {
$form = array();
$form['nodejs_uid'] = array(
'#type' => 'textfield',
'#description' => t('The user uid to add to a channel.'),
'#title' => t('User uid to add'),
);
$form['nodejs_channel'] = array(
'#type' => 'textfield',
'#description' => t('The name of the channel to give a user access to.'),
'#title' => t('Channel to add'),
);
$form['nodejs_submit'] = array(
'#type' => 'submit',
'#value' => t('Add user'),
);
return $form;
}