Browse Source

Added code to start web services

E.Cannon 9 năm trước cách đây
mục cha
commit
4b8dfd21ae
1 tập tin đã thay đổi với 21 bổ sung1 xóa
  1. 21 1
      blast_ui.module

+ 21 - 1
blast_ui.module

@@ -279,4 +279,24 @@ function ajax_blast_ui_example_sequence_callback($form, $form_state) {
   }
 
   return $form['query']['FASTA'];
-}
+}
+
+
+/**
+ * Enable web services API
+ *
+ * @param $owner
+ *   
+ * @param $api
+ *
+ * @return $result
+ *  
+ */
+function blast_ui_ctools_plugin_api($owner, $api) {
+  if ($owner == 'services' && $api == 'services') {
+    return array(
+      'version' => 3,
+      'file' => 'includes/blast_ui.services.inc'
+    );
+  }
+}