function scs_node_selection in Simplenews Content Selection 6
Same name and namespace in other branches
- 6.2 scs.pages.inc \scs_node_selection()
- 7 scs.module \scs_node_selection()
1 string reference to 'scs_node_selection'
- scs_menu in ./
scs.module
File
- ./
scs.pages.inc, line 12
Code
function scs_node_selection() {
$nodes = _scs_get_nodes();
$form = array();
foreach ($nodes as $node) {
$form['nid_' . $node->nid] = array(
'#type' => 'checkbox',
);
}
$form['newsletter_title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#description' => t('Enter the title of this newsletter'),
'#required' => true,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Create newsletter'),
);
return $form;
}