You are here

function swagger_ui_formatter_field_formatter_info in Swagger UI Field Formatter 7

Same name and namespace in other branches
  1. 7.2 swagger_ui_formatter.module \swagger_ui_formatter_field_formatter_info()

Implements hook_field_formatter_info().

File

./swagger_ui_formatter.module, line 11
Swagger ui field formatter functionality.

Code

function swagger_ui_formatter_field_formatter_info() {
  return array(
    'swagger_ui_formatter_swagger_ui' => array(
      'label' => t('Swagger UI Formatter'),
      'description' => t('Formats file fields with Swagger YAML or JSON files with a rendered swagger ui'),
      'field types' => array(
        'file',
      ),
      'settings' => array(
        'validator' => 'default',
        'validator_url' => '',
        'doc_expansion' => 'none',
        'show_request_headers' => FALSE,
      ),
    ),
  );
}