You are here

function uc_wishlist_admin_settings_form in UC Wish List 6

Same name and namespace in other branches
  1. 7 uc_wishlist.admin.inc \uc_wishlist_admin_settings_form()
1 string reference to 'uc_wishlist_admin_settings_form'
uc_wishlist_menu in ./uc_wishlist.module
Implementation of hook_menu().

File

./uc_wishlist.admin.inc, line 10
Admin page callbacks and forms for wish lists.

Code

function uc_wishlist_admin_settings_form() {
  $form = array();
  $form['uc_wishlist_default_title'] = array(
    '#type' => 'textfield',
    '#title' => t('Default wish list title'),
    '#default_value' => variable_get('uc_wishlist_default_title', "%user's wish list"),
    '#description' => t("The default name of a new wish list. The token %user will be replaced by the user's name."),
  );
  $form['uc_wishlist_allow_anonymous'] = array(
    '#type' => 'checkbox',
    '#title' => t('Allow anonymous users to create wish lists.'),
    '#default_value' => variable_get('uc_wishlist_allow_anonymous', FALSE),
    '#description' => t('Check this box to allow anonymous users to create wish lists. If not checked, anonymous visitors will be prompted to login or register before creating a wish list.'),
  );

  // TODO: add uc_wishlist_default_length
  return system_settings_form($form);
}