<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/form/actions/AcyMailing/action-unsubscribe.json

return [
  'name' => 'acymailing-unsubscribe', 
  'title' => 'Unsubscribe', 
  'description' => 'Unsubcribe an AcyMailing list subscriber', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/form/actions/AcyMailing/icon.svg', $file), 
  'group' => 'Misc', 
  'collection' => 'AcyMailing', 
  'fields' => [
    'subscriber_email' => [
      'label' => 'Email Address', 
      'description' => 'Subscriber\'s email address.', 
      'source' => true
    ], 
    '_lists' => [
      'type' => 'yooessentials-async-fields', 
      'endpoint' => 'yooessentials/form/actions/acymailing/lists'
    ], 
    'name' => $config->get('yooessentials.form.fields.action_name'), 
    'status' => $config->get('yooessentials.form.fields.action_status'), 
    'conditions' => $config->get('yooessentials.form.fields.action_conditions')
  ], 
  'fieldset' => [
    'default' => [
      'type' => 'tabs', 
      'fields' => [[
          'title' => 'Action', 
          'fields' => ['subscriber_email', '_lists']
        ], [
          'title' => 'Advanced', 
          'fields' => ['name', 'status', 'conditions']
        ]]
    ]
  ]
];
