瀏覽代碼

Added 'starts with' and 'ends with' operators to the chado_views_handler_filter_string handler

spficklin 12 年之前
父節點
當前提交
31342c077f
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      tripal_views/views/handlers/chado_views_handler_filter_string.inc

+ 12 - 0
tripal_views/views/handlers/chado_views_handler_filter_string.inc

@@ -130,6 +130,18 @@ class chado_views_handler_filter_string extends views_handler_filter_string {
         'method' => 'op_contains',
         'values' => 1,
       ),
+      'starts' => array(
+        'title' => t('Starts with'),
+        'short' => t('begins'),
+        'method' => 'op_starts',
+        'values' => 1,
+      ),
+      'ends' => array(
+         'title' => t('Ends with'),
+         'short' => t('ends'),
+         'method' => 'op_ends',
+         'values' => 1,
+       ),
     );
 
     return $operators;