Browse Source

Added date fields

Chun-Huai Cheng 9 years ago
parent
commit
52a1fe9b76

+ 3 - 2
tripal_entities/includes/tripal_entities.admin.inc

@@ -478,8 +478,9 @@ function tripal_entities_add_bundle_fields($entity_type_name, $bundle_name, $cvt
           $is_required = 0;
           break;
         case 'datetime':
-          //$field_type = 'datestamp';
-          // TODO: What is the proper datetime fields ??????
+          // Use the Drupal Date and Date API to create the field/widget
+          $field_type = 'datestamp';
+          $widget_type = 'date_select';
           break;
         default:
           drupal_set_message(t("Unhandled field type: %type", array('%type' => $details['type'])), 'warning');

+ 1 - 1
tripal_entities/tripal_entities.info

@@ -13,5 +13,5 @@ dependencies[] = tripal_views
 dependencies[] = tripal_db
 dependencies[] = tripal_cv
 
-dependencies[] = date_api
+dependencies[] = date
 dependencies[] = entity