You are here

function ed_readmore_admin_settings in Read More Link (Drupal 6 and earlier) 6.3

Same name and namespace in other branches
  1. 5 ed_readmore.module \ed_readmore_admin_settings()
  2. 6.5 ed_readmore.module \ed_readmore_admin_settings()
  3. 6.2 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 180

Code

function ed_readmore_admin_settings() {
  $form = array();
  $form['readmore'] = array(
    '#type' => 'fieldset',
    '#collapsible' => TRUE,
    '#collapsed' => FALSE,
    '#title' => t('Teaser "Read more" handling'),
  );
  $form['readmore']['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', 1),
    '#description' => t('Move Read More 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['readmore']['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', 1),
    '#description' => t('If relocation is enabled, and this option is set, place "read more" text on last line of teaser text using a &lt;span&gt; element.'),
    '#required' => FALSE,
  );
  $form['readmore']['ed_readmore_text'] = array(
    '#type' => 'textfield',
    '#title' => t('The "read more" 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 read more link.  May contain HTML.'),
    '#required' => TRUE,
  );
  $form['readmore']['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);
}