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

return [
  'name' => 'message', 
  'title' => 'Display Message', 
  'description' => 'Display a message in a modal.', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/form/actions/Message/icon.svg', $file), 
  'fields' => [
    'content' => [
      'type' => 'editor', 
      'mode' => 'text/html', 
      'label' => 'Content', 
      'description' => 'The content to display in the modal.', 
      'source' => true, 
      'formPlaceholder' => true
    ], 
    'modal_center' => [
      'type' => 'checkbox', 
      'text' => 'Vertically center the modal'
    ], 
    'modal_stack' => [
      'type' => 'checkbox', 
      'text' => 'Do not close other modals'
    ], 
    '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' => ['content', 'modal_center', 'modal_stack']
        ], [
          'title' => 'Advanced', 
          'fields' => ['name', 'status', 'conditions']
        ]]
    ]
  ]
];
