plugin.feadmin.dmailsubscription >
plugin.feadmin.dmailsubscription = USER_INT
plugin.feadmin.dmailsubscription {
  userFunc = user_feAdmin->init
  includeLibs = media/scripts/fe_adminLib.inc
  templateFile ={$plugin.feadmin.dmailsubscription.file.templateFile}

  # Global wraps
  wrap1.wrap = {$plugin.feadmin.dmailsubscription.wrap1}
  wrap2.wrap = {$plugin.feadmin.dmailsubscription.wrap2}
  color1.wrap = {$plugin.feadmin.dmailsubscription.color1}
  color2.wrap = {$plugin.feadmin.dmailsubscription.color2}
  color3.wrap = {$plugin.feadmin.dmailsubscription.color3}

  // Tables + Commands
  table = tt_address

    // Info-mail setup
  setfixed=1
  setfixed.approve {
    _FIELDLIST = uid
    hidden = 0
  }
  setfixed.DELETE = 1
  setfixed.DELETE._FIELDLIST = uid

  delete = 1
  defaultCmd=create

  // Info-mail setup
  infomail = 1
  infomail.default {
    label = FORGOTPASSWORD
  }

  // Edit setup
  edit = 1
  edit.fields = name, email, module_sys_dmail_category, module_sys_dmail_html
  edit.required = name, email
  edit.evalValues {
    email = uniqueLocal, email
  }

  // Create setup
  create = 1
  create.preview = 0
  create.fields = name, hidden, email, module_sys_dmail_category, module_sys_dmail_html
  create.required = name, email
  create.noSpecialLoginForm = 1
    # Initially hide the user until he approves!
  create.overrideValues.hidden = 1
  create.evalValues {
    email = uniqueLocal, email
  }

  authcodeFields = uid
  authcodeFields.addKey = 
  authcodeFields.addDate = 

  evalErrors.email.uniqueLocal = Apparently you're already registered with this email address!
  evalErrors.email.email = This is not a proper email address!

  parseValues.module_sys_dmail_category = checkArray,setEmptyIfAbsent 
  parseValues.module_sys_dmail_html = setEmptyIfAbsent 
  pid = {$plugin.feadmin.dmailsubscription.pid}

  email.from = {$plugin.feadmin.dmailsubscription.email}
  email.fromName = {$plugin.feadmin.dmailsubscription.emailName}
  email.admin = {$plugin.feadmin.dmailsubscription.email}
  email.field = email
}