Tripal
Functions
tripal_ws.fields.inc File Reference

Functions

 tripal_ws_bundle_fields_info ($entity_type, $bundle)
 
 tripal_ws_bundle_instances_info ($entity_type, $bundle)
 
 tripal_ws_bundle_create_user_field ($new_field, $bundle)
 

Detailed Description

Contains all field specific code outside the classes.

Function Documentation

◆ tripal_ws_bundle_create_user_field()

tripal_ws_bundle_create_user_field (   $new_field,
  $bundle 
)

Implements hook_bundle_create_user_field().

A priviledged user has the ability to add new fields to the bundle. The remote__data field is allowed to be added dynamically by the user. But, Drupal doesn't know how to deal with it, so this function is called for any field attached to a TripalEntity bundle type. Any fields whose TripalField::$module argument is set to 'tripal_ws' and that can be added dynamically will result in a call to this function.

◆ tripal_ws_bundle_fields_info()

tripal_ws_bundle_fields_info (   $entity_type,
  $bundle 
)

◆ tripal_ws_bundle_instances_info()

tripal_ws_bundle_instances_info (   $entity_type,
  $bundle 
)