Drupal Association members fund grants that make connections all over the world.
$entity_info = entity_get_info($entity_type); $entity = entity_create($entity_type, array( $entity_info['entity keys']['bundle'] => $bundle_name, $entity_info['entity keys']['label'] => $label, )); entity_save($entity_type, $entity);
But it didn't work (terms were created with vid = 0). Should it work? If so, here's a patch.