--- /dev/null
+<?php
+
+/**
+ * @file
+ * Contains yaffs_document.module.
+ */
+
+use Drupal\Core\Routing\RouteMatchInterface;
+
+/**
+ * Implements hook_help().
+ */
+function yaffs_document_help($route_name, RouteMatchInterface $route_match) {
+ switch ($route_name) {
+ // Main module help for the yaffs_document module.
+ case 'help.page.yaffs_document':
+ $output = '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('A special content type for Yaffs documents.') . '</p>';
+ return $output;
+
+ default:
+ }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function yaffs_document_theme() {
+ return [
+ 'yaffs_document' => [
+ 'template' => 'yaffs_document',
+ 'render element' => 'children',
+ ],
+ ];
+
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ */
+function yaffs_document_form_node_papertest_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
+/* $form['field_odt']['#ajax']['progress'] = array(
+ 'callback' => 'ajax_yaffs_document_body_callback',
+ 'wrapper' => 'body-odt-div',
+ 'method' => 'replace',
+ 'effect' => 'fade',
+ );
+
+ $form['body']['#prefix'] = '<div id="body-odt-div">';
+ $form['body']['#suffix'] = '</div>';
+*/
+}
+
+function ajax_yaffs_document_body_callback($form, $form_state) {
+/*
+ $form['body']['#default'] = 'hello';
+ return /*$form['body']; '<p>hello</p>';
+*/
+}
\ No newline at end of file