Browse Source

Added code to start web services

E.Cannon 9 years ago
parent
commit
4b8dfd21ae
1 changed files with 21 additions and 1 deletions
  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'
+    );
+  }
+}