module.exports = function context (asset) {
  var base = require('../base')(asset)

  return function form (name, opts) {
    if (typeof name !== 'string') {
      opts = name
      name = undefined
    }

    if (!opts) {
      opts = {}
    }

    if (!opts.name) {
      opts.name = name
    }

    return base.apply(null, ['page_custom_form', opts].concat(Array.prototype.slice.call(arguments, 2)))
  }
}

module.exports = function context (asset) {
  return function form (name, opts) {
    if (typeof name !== 'string') {
      opts = name
      name = undefined
    }

    if (!opts) {
      opts = {}
    }

    if (!opts.name) {
      opts.name = name
    }

    return asset('page_custom_form', opts, [
      asset('form_email', { link: 'type_2', name: 'Form Contents' dependant: '1', exclusive: '1' })
    ])
  }
}

Update form definition, including form_email child
Update form definition, including form_email child
