Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / schema_alter.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/schema_alter.twig
new file mode 100644 (file)
index 0000000..4a7ae8f
--- /dev/null
@@ -0,0 +1,12 @@
+/**
+ * Implements hook_schema_alter().
+ */
+function {{ machine_name }}_schema_alter(&$schema) {
+  // Add field to existing schema.
+  $schema['users']['fields']['timezone_id'] = array(
+    'type' => 'int',
+    'not null' => TRUE,
+    'default' => 0,
+    'description' => 'Per-user timezone configuration.',
+  );
+}