Move the hook_farm_sensor_type_info() implementation to the bottom of the file.

This commit is contained in:
Michael Stenta 2015-09-24 21:26:12 -04:00
parent 88c04a584b
commit 5d249ab1e6
1 changed files with 12 additions and 12 deletions

View File

@ -336,18 +336,6 @@ function farm_sensor_settings_form_ajax($form, $form_state) {
return $form['sensor_settings'];
}
/**
* Implements hook_farm_sensor_type_info().
*/
function farm_sensor_farm_sensor_type_info() {
return array(
'none' => array(
'label' => t('None'),
'description' => t('No sensor type.'),
),
);
}
/**
* Get farm sensor types.
*
@ -445,3 +433,15 @@ function farm_sensor_area_sensors($area_id, $type = '') {
// Return the sensors.
return $sensors;
}
/**
* Implements hook_farm_sensor_type_info().
*/
function farm_sensor_farm_sensor_type_info() {
return array(
'none' => array(
'label' => t('None'),
'description' => t('No sensor type.'),
),
);
}