Move the hook_farm_sensor_type_info() implementation to the bottom of the file.
This commit is contained in:
parent
88c04a584b
commit
5d249ab1e6
|
@ -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.'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue