publishcontent.admin.inc 884 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Contains page callbacks for publishcontent
  5. */
  6. /**
  7. * Administration settings form.
  8. */
  9. function publishcontent_config_form($form, &$form_state) {
  10. $form['publishcontent_method'] = array(
  11. '#type' => 'radios',
  12. '#title' => t('Quick publish method'),
  13. '#default_value' => variable_get('publishcontent_method', PUBLISHCONTENT_METHOD_TABS),
  14. '#description' => t('Choose the quick links method. With no quick links, the published checkbox will still appear on the node edit form. Note that a Drupal cache clear is required after changing this.'),
  15. '#options' => array(
  16. PUBLISHCONTENT_METHOD_NONE => t('None.'),
  17. PUBLISHCONTENT_METHOD_ACTION_LINKS => t('Action links on node view.'),
  18. PUBLISHCONTENT_METHOD_BUTTON => t('Button.'),
  19. PUBLISHCONTENT_METHOD_TABS => t('Tabs.'),
  20. ),
  21. );
  22. return system_settings_form($form);
  23. }