function farm_sensor_delete in farmOS 7
Helper function for deleting farm sensor information.
Parameters
int $id: The farm sensor asset id.
2 calls to farm_sensor_delete()
- farm_sensor_entity_delete in modules/
farm/ farm_sensor/ farm_sensor.module - Implements hook_entity_delete().
- farm_sensor_save in modules/
farm/ farm_sensor/ farm_sensor.module - Helper function for saving farm sensor information.
File
- modules/
farm/ farm_sensor/ farm_sensor.module, line 352
Code
function farm_sensor_delete($id) {
db_delete('farm_sensor')
->condition('id', $id)
->execute();
}