function tripal_feature_delete_property

2.x tripal_feature.DEPRECATED.inc tripal_feature_delete_property($feature_id, $property, $cv_name = 'tripal')
3.x tripal_feature.DEPRECATED.inc tripal_feature_delete_property($feature_id, $property, $cv_name = 'tripal')
1.x tripal_feature.api.inc tripal_feature_delete_property($feature_id, $property, $cv_name = 'tripal')

Delete a given feature property using the property name. Only use this if the property is unique and only exists once for the feature.

Parameters

$feature_id: The feature_id of the property to delete

$property: The cvterm name of the property to delete

$cv_name: Optional. The name of the cv to which the property belongs. By default this is the 'tripal' cv.

Note: The property will be identified using the unique combination of the $feature_id and $property and then it will be deleted

Return value

True of success, False otherwise

Related topics

File

tripal_feature/api/tripal_feature.api.inc, line 390
Provides an application programming interface (API) for working with features

Code

function tripal_feature_delete_property($feature_id, $property, $cv_name = 'tripal') {
  return tripal_core_delete_property('feature', $feature_id, $property, $cv_name);
}