Skip to content
Permalink
Browse files

Initial commit: simple Sensor asset type.

  • Loading branch information...
mstenta committed May 15, 2015
0 parents commit 1678ded540e5fb960129d151af4f6f94bbe651a8
Showing with 34 additions and 0 deletions.
  1. +19 −0 farm_sensor.features.inc
  2. +8 −0 farm_sensor.info
  3. +7 −0 farm_sensor.module
@@ -0,0 +1,19 @@
<?php
/**
* @file
* farm_sensor.features.inc
*/
/**
* Implements hook_default_farm_asset_type().
*/
function farm_sensor_default_farm_asset_type() {
$items = array();
$items['sensor'] = entity_import('farm_asset_type', '{
"type" : "sensor",
"label" : "Sensor",
"weight" : 0,
"rdf_mapping" : []
}');
return $items;
}
@@ -0,0 +1,8 @@
name = Farm Sensor
description = Features for managing farm sensors.
core = 7.x
package = farmOS
dependencies[] = entity
dependencies[] = farm_asset
features[farm_asset_type][] = sensor
features[features_api][] = api:2
@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the Farm Sensor feature.
*/

include_once 'farm_sensor.features.inc';

1 comment on commit 1678ded

@rjsteinert

This comment has been minimized.

Copy link
Contributor

rjsteinert commented on 1678ded Mar 23, 2019

w00t!

Please sign in to comment.
You can’t perform that action at this time.