function tripal_feature_update_property

2.x tripal_feature.DEPRECATED.inc tripal_feature_update_property($feature_id, $property, $value, $insert_if_missing = 0, $cv_name = 'tripal')
3.x tripal_feature.DEPRECATED.inc tripal_feature_update_property($feature_id, $property, $value, $insert_if_missing = 0, $cv_name = 'tripal')
1.x tripal_feature.api.inc tripal_feature_update_property($feature_id, $property, $value, $insert_if_missing = 0, $cv_name = 'tripal')

Update a feature property using the property name. Only use this if the property is unique and only exist once for the feature.

Parameters

$feature_id: The feature_id of the property to update

$property: The cvterm name of the property to update

$value: The value of the property to update

$insert_if_missing: A boolean indicated whether to insert the record if it's absent

$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 updated with the supplied value

Return value

True of success, False otherwise

Related topics

File

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

Code

function tripal_feature_update_property($feature_id, $property, 
$value, $insert_if_missing = 0, $cv_name = 'tripal') {
  return tripal_core_update_property('feature', $feature_id, $property, $cv_name, $value, $insert_if_missing);
}