Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / user_operations.twig
diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/user_operations.twig
new file mode 100644 (file)
index 0000000..27b9eec
--- /dev/null
@@ -0,0 +1,19 @@
+/**
+ * Implements hook_user_operations().
+ */
+function {{ machine_name }}_user_operations() {
+  $operations = array(
+    'unblock' => array(
+      'label' => t('Unblock the selected users'),
+      'callback' => 'user_user_operations_unblock',
+    ),
+    'block' => array(
+      'label' => t('Block the selected users'),
+      'callback' => 'user_user_operations_block',
+    ),
+    'cancel' => array(
+      'label' => t('Cancel the selected user accounts'),
+    ),
+  );
+  return $operations;
+}