function ed_readmore_admin_settings in Read More Link (Drupal 6 and earlier) 5
Same name and namespace in other branches
- 6.5 ed_readmore.module \ed_readmore_admin_settings()
- 6.2 ed_readmore.module \ed_readmore_admin_settings()
- 6.3 ed_readmore.module \ed_readmore_admin_settings()
Displays the settings form
1 string reference to 'ed_readmore_admin_settings'
- ed_readmore_menu in ./
ed_readmore.module - Implementation of hook_menu
File
- ./
ed_readmore.module, line 187 - Customize the "Read more" link shown in teasers.
Code
function ed_readmore_admin_settings() {
$form = array();
$form['ed_readmore_readmore_tweak'] = array(
'#type' => 'checkbox',
'#title' => t('Relocate <strong>Read More</strong> link from links section?'),
'#default_value' => variable_get('ed_readmore_readmore_tweak', ED_READMORE_READMORE_TWEAK_DEFAULT),
'#description' => t('Move <strong>Read More</strong> from links to end of teaser? See <a target="_blank" href="http://www.angrydonuts.com/the_nuisance_of_the_read_more_fl">AngryDonuts.com</a> for details.'),
'#required' => FALSE,
);
$form['ed_readmore_readmore_inline'] = array(
'#type' => 'checkbox',
'#title' => t('Put <strong>Read More</strong> inline in teaser?'),
'#default_value' => variable_get('ed_readmore_readmore_inline', ED_READMORE_READMORE_INLINE_DEFAULT),
'#description' => t('If relocation is enabled, and this option is set, place <strong>Read More</strong> text on last line of teaser text using a <span> element.'),
'#required' => FALSE,
);
$form['ed_readmore_readmore_remove'] = array(
'#type' => 'checkbox',
'#title' => t('Remove <strong>Read More</strong> link from links section'),
'#default_value' => variable_get('ed_readmore_readmore_remove', TRUE),
'#description' => t('Also remove Drupal\'s default <strong>Read More</strong> link from node links.'),
);
$form['ed_readmore_readmore_rss_enabled'] = array(
'#type' => 'checkbox',
'#title' => t('Put <strong>Read More</strong> inline in RSS feeds?'),
'#default_value' => variable_get('ed_readmore_readmore_rss_enabled', ED_READMORE_READMORE_RSS_DEFAULT),
'#description' => t('If relocation is enabled, and this option is set, place <strong>Read More</strong> text on last line of rss text using a <span> element.'),
'#required' => FALSE,
);
$form['ed_readmore_text'] = array(
'#type' => 'textfield',
'#title' => t('The <strong>Read More</strong> text to display in the teaser'),
'#default_value' => variable_get('ed_readmore_text', t(ED_READMORE_TEXT_DEFAULT)),
'#description' => t('Enter the text you wish to display in the <strong>Read More</strong> link. May contain HTML.'),
'#required' => TRUE,
);
$form['ed_readmore_readmore_strong'] = array(
'#type' => 'checkbox',
'#title' => t('Bold this text'),
'#default_value' => variable_get('ed_readmore_readmore_strong', 1),
'#required' => FALSE,
);
return system_settings_form($form);
}