You are here

function hook_farm_sensor_view in farmOS 7

Add content to the sensor view page.

Parameters

FarmAsset $asset: The sensor asset.

Return value

array Returns a build array to be merged into the sensor asset view page.

Related topics

1 function implements hook_farm_sensor_view()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

farm_sensor_listener_farm_sensor_view in modules/farm/farm_sensor/farm_sensor_listener/farm_sensor_listener.module
Implements hook_farm_sensor_view().
1 invocation of hook_farm_sensor_view()
farm_sensor_entity_view_alter in modules/farm/farm_sensor/farm_sensor.module
Implements hook_entity_view_alter().

File

modules/farm/farm_sensor/farm_sensor.api.php, line 49
Hooks provided by farm_sensor.

Code

function hook_farm_sensor_view($asset) {
  $build['mysensor'] = array(
    '#markup' => 'Add this to the sensor asset page!',
  );
  return $build;
}