@@ -637,5 +637,18 @@ class TripalField {
public static function viewsDataAlter(&$data, $field, $entity_info) {
}
+
+ /**
+ * Sort data by the field
+ *
+ * This function takes an array of data and performs sorting by the
+ * specified field
+ * @return
+ */
+ public static function sort(&$data, $criteria = 'ASC') {
+ }
@@ -63,6 +63,7 @@ class tripal_views_query extends views_plugin_query {
$filter = key_exists($field_name, $filters) ? $filters[$field_name] : NULL;
if ($filter && trim($filter->value)) {
$exclude = $filter->exclude($value);
+ continue;
$row->entity = $entity;