Commit Graph

34 Commits

Author SHA1 Message Date
Michael Stenta 7a3b3c4fd2 Move to modules/farm/farm_sensor in preparation for #2876992. 2017-05-26 10:02:48 -04:00
Michael Stenta dea997a96d Always show Sensors View on Area pages. 2017-05-20 10:37:26 -04:00
Michael Stenta 6d8e68d8df Wrap sensor configuration in a fieldset. 2017-05-19 13:39:13 -04:00
Michael Stenta 011aa2e4b9 Make asset map code more defensive. 2017-04-12 11:09:57 -04:00
Michael Stenta 43b064072f Issue #2822310: Allow dashboard maps to be disabled 2016-10-26 11:25:30 -04:00
Michael Stenta c670e53308 Update function name and add dependency on Farm Log Movement module. 2016-07-06 18:33:56 -04:00
Michael Stenta ea3ae8fe0a Pass the sensor entity into the sensor settings form. 2016-06-10 12:07:49 -04:00
Michael Stenta 52737d489b Explicitely set weight of asset Views. 2016-05-05 11:12:26 -04:00
Michael Stenta c420a3d76c Implement hook_farm_area_links() to provide a link to sensors within an area (if any). 2016-03-07 18:08:48 -05:00
Michael Stenta a23195e9ae Don't display asset cluster map if the View contains arguments. 2016-03-07 15:24:26 -05:00
Michael Stenta e6dc37d8cc Issue #2659994: Reorganize menu structure 2016-01-31 18:26:08 -05:00
Michael Stenta 9adba48106 Fix PHP notice when saving a sensor without any settings. 2016-01-01 19:30:33 -05:00
Michael Stenta 2ba9906168 Fix PHP Strict warning: Only variables should be passed by reference in farm_crop_views_post_render() 2015-12-04 14:25:04 -05:00
Michael Stenta ef6462bdf7 Use hook_views_post_render() instead of hook_page_build() for adding asset maps, so that we can check to see if the View is empty first. 2015-12-04 10:50:25 -05:00
Michael Stenta 04691052ac Display asset cluster map in the main sensors page. 2015-12-01 09:14:42 -05:00
Michael Stenta a3ead4739a Move all listener sensor code into a new farm_sensor_listener module. 2015-10-20 14:41:48 -04:00
Michael Stenta 6ac933243d Define an access callback that authenticates a Drupal user account from PHP basic authentication. 2015-10-20 14:40:48 -04:00
Michael Stenta b2ab7664ed Define a callback for accepting sensor data posted via JSON. 2015-10-20 14:40:48 -04:00
Michael Stenta f12dbd8ca9 Add a "Listener" sensor type. 2015-10-20 11:29:56 -04:00
Michael Stenta 5d249ab1e6 Move the hook_farm_sensor_type_info() implementation to the bottom of the file. 2015-10-20 11:23:17 -04:00
Michael Stenta 88c04a584b Change hook_farm_manager_perms() to hook_farm_access_perms(). 2015-10-04 00:11:04 -04:00
Michael Stenta ab2ab489e0 If a sensor type module is turned off, display "(undefined)" next to its type. 2015-05-27 15:37:11 -04:00
Michael Stenta 3ac53ce2fe Provide a hook that other modules can use to add content to sensor view pages. 2015-05-27 13:06:45 -04:00
Michael Stenta 4de98baeb5 Function for loading all sensors in a given area. 2015-05-27 13:06:32 -04:00
Michael Stenta f31f7a7a94 Display sensor type on the sensor asset view page. 2015-05-27 12:38:30 -04:00
Michael Stenta f6a693f1e2 Display the sensors View in the Areas view page. 2015-05-27 12:38:30 -04:00
Michael Stenta 1dcd53070c Display activities, observations, and movements in the Sensor view page. 2015-05-27 12:38:30 -04:00
Michael Stenta 09808588f8 Add sensor permissions to the Farm Manager role, if available. 2015-05-27 12:38:30 -04:00
Michael Stenta 52aed92e76 Add sensor breadcrumbs and admin actions. 2015-05-27 12:38:30 -04:00
Michael Stenta ea11905e90 Display sensor settings form in farm sensor asset form. 2015-05-27 12:38:30 -04:00
Michael Stenta 3533a8e591 Implement entity hooks for loading, saving, and deleting sensor records alongside entities. 2015-05-27 12:38:30 -04:00
Michael Stenta e4243726e0 Helper functions for saving/deleting records in the {farm_sensor} table. 2015-05-27 12:38:30 -04:00
Michael Stenta 3a65181806 Provide a hook so that other modules can define available sensor types. Define a default type of "none". 2015-05-27 12:38:29 -04:00
Michael Stenta 1678ded540 Initial commit: simple Sensor asset type. 2015-05-15 11:06:35 -04:00