function _scs_get_metadata_form in Simplenews Content Selection 7
Helper form: get the metadata form fields
Parameters
$form:
Return value
mixed
3 calls to _scs_get_metadata_form()
- scs_form_alter in ./
scs.module - Implements hook_form_alter()
- scs_node_selection in ./
scs.module - Page callback: Node selection page also known as the first way to use this module
- scs_views_create_newsletter_action_form in simplenews_content_selection_views/
scs_views.module - Configuration form for tis action. Not used as form, but used as a step to go to the node sorter.
File
- ./
scs.module, line 332 - Select Drupal content to create a newsletter
Code
function _scs_get_metadata_form($form) {
// Newsletter-related elements
$form['scs_title'] = array(
'#type' => 'textfield',
'#title' => t('Title'),
'#description' => t('Enter the title of this newsletter'),
'#default_value' => variable_get('scs_default_title', ''),
'#required' => TRUE,
);
$form['scs_toc'] = array(
'#type' => 'checkbox',
'#title' => t('Create a table of contents'),
'#description' => t('Create a table of contents at top of the newsletter with the titles of the selected nodes. If newsletter is HTML format, these table of contents will be bookmarks.'),
);
return $form;
}