function forward_form_alter in Forward 5
Same name and namespace in other branches
- 8.3 forward.module \forward_form_alter()
- 8 forward.module \forward_form_alter()
- 8.2 forward.module \forward_form_alter()
- 6 forward.module \forward_form_alter()
- 7.3 forward.module \forward_form_alter()
- 7 forward.module \forward_form_alter()
- 7.2 forward.module \forward_form_alter()
File
- ./
forward.module, line 818
Code
function forward_form_alter($form_id, &$form) {
// Add the node-type settings option to activate the email this page link
if ('node_type_form' == $form_id) {
$form['workflow']['forward_display'] = array(
'#type' => 'checkbox',
'#title' => t('Show forwarding link/form'),
'#return_value' => 1,
'#default_value' => variable_get('forward_display_' . $form['#node_type']->type, '1'),
'#description' => t('Displays the form/link to allow visitors to forward the page to a friend. Further configuration is available on the !settings.', array(
'!settings' => l(t('settings page'), 'admin/settings/forward'),
)),
);
}
else {
if ('comment_admin_settings' == $form_id) {
$form['viewing_options']['forward_display_comments'] = array(
'#type' => 'checkbox',
'#title' => t('Show forwarding link/form'),
'#return_value' => 1,
'#default_value' => variable_get('forward_display_comments', false),
'#description' => t('Displays the form/link to allow visitors to forward the page to a friend. Further configuration is available on the !settings.', array(
'!settings' => l(t('settings page'), 'admin/settings/forward'),
)),
);
}
}
}