From ad4725c12f8b7d79e1005f01e2c5d2906cff7cba Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Tue, 21 Dec 2021 19:18:39 -0500 Subject: [PATCH] Change all relevant links from farmOS.org to v1.farmOS.org. --- docker/Dockerfile | 2 +- docker/README.txt | 2 +- farm.install | 2 +- farm.profile | 2 +- modules/farm/farm_area/farm_area.field_group.inc | 2 +- modules/farm/farm_crop/farm_crop.module | 6 +++--- modules/farm/farm_group/farm_group.module | 2 +- modules/farm/farm_help/farm_help.api.php | 2 +- modules/farm/farm_help/farm_help.module | 6 +++--- .../farm/farm_map/farm_map_google/farm_map_google.module | 2 +- .../farm_sensor_listener/farm_sensor_listener.module | 4 ++-- 11 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e87e3be81..ca10792ab 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -40,7 +40,7 @@ RUN apt-get update && apt-get install -y libgeos-dev \ && docker-php-ext-enable geos # Set recommended PHP settings for farmOS. -# See https://farmos.org/hosting/installing/#requirements +# See https://v1.farmos.org/hosting/installing/#requirements RUN { \ echo 'memory_limit=256M'; \ echo 'max_execution_time=240'; \ diff --git a/docker/README.txt b/docker/README.txt index 1bd43bdd9..a6513689b 100644 --- a/docker/README.txt +++ b/docker/README.txt @@ -17,4 +17,4 @@ an example for building your own configuration. Note that this example does not include a database. It is assumed that in production environments the database will be managed outside of Docker. -For more information, see farmOS.org/hosting/docker. +For more information, see v1.farmOS.org/hosting/docker. diff --git a/farm.install b/farm.install index 97a5de477..5a10957cc 100644 --- a/farm.install +++ b/farm.install @@ -130,7 +130,7 @@ function farm_install_configure_form($form, &$form_state) { $form['farm_map_google_api_key'] = array( '#type' => 'textfield', '#title' => t('Google Maps API Key'), - '#description' => t('Google Maps layers require that you obtain an API key. Refer to the Google Maps API Key documentation on farmOS.org for instructions.', array('@doc' => 'https://farmos.org/hosting/googlemaps')) . ' ' . t('This can also be done after installation.'), + '#description' => t('Google Maps layers require that you obtain an API key. Refer to the Google Maps API Key documentation on v1.farmOS.org for instructions.', array('@doc' => 'https://v1.farmos.org/hosting/googlemaps')) . ' ' . t('This can also be done after installation.'), '#default_value' => variable_get('farm_map_google_api_key', ''), ); diff --git a/farm.profile b/farm.profile index 37ecfff5f..113ab603e 100644 --- a/farm.profile +++ b/farm.profile @@ -12,6 +12,6 @@ function farm_form_update_manager_update_form_alter(&$form, &$form_state, $form_ // Disable updating through the UI. // @see https://www.drupal.org/project/farm/issues/3136140 - drupal_set_message(t('Performing updates through this interface is disabled by farmOS. For information about updating farmOS, see !url.', array('!url' => 'https://farmOS.org/hosting/updating')), 'error'); + drupal_set_message(t('Performing updates through this interface is disabled by farmOS. For information about updating farmOS, see !url.', array('!url' => 'https://v1.farmOS.org/hosting/updating')), 'error'); $form['actions']['#access'] = FALSE; } diff --git a/modules/farm/farm_area/farm_area.field_group.inc b/modules/farm/farm_area/farm_area.field_group.inc index 1ba31a5c9..c9014e0a6 100644 --- a/modules/farm/farm_area/farm_area.field_group.inc +++ b/modules/farm/farm_area/farm_area.field_group.inc @@ -121,7 +121,7 @@ function farm_area_field_group_info() { 'required_fields' => 1, 'id' => '', 'classes' => 'group-farm-geometry field-group-fieldset', - 'description' => t('Use this field to define the geometry of this area on a map. Points, lines, circles, and polygons (free-form shapes) can be drawn using the controls below. To draw a polygon, add a point at each corner, and double-click on the last one to close the shape. For more information about mapping areas in farmOS, see @area-doc-url', array('@area-doc-url' => 'https://farmos.org/guide/areas')), + 'description' => t('Use this field to define the geometry of this area on a map. Points, lines, circles, and polygons (free-form shapes) can be drawn using the controls below. To draw a polygon, add a point at each corner, and double-click on the last one to close the shape. For more information about mapping areas in farmOS, see @area-doc-url', array('@area-doc-url' => 'https://v1.farmos.org/guide/areas')), ), 'formatter' => 'collapsible', ), diff --git a/modules/farm/farm_crop/farm_crop.module b/modules/farm/farm_crop/farm_crop.module index 70c5ecc9c..37a74f51d 100644 --- a/modules/farm/farm_crop/farm_crop.module +++ b/modules/farm/farm_crop/farm_crop.module @@ -13,17 +13,17 @@ function farm_crop_help($path, $arg) { // View of Plantings. if ($path == 'farm/assets/plantings') { - return t('Plantings can be used to represent groups of plants (eg: a field of corn, or a group of seedlings), or they can be used to represent individual plants (eg: in the case of nurseries). For more information, see the Plantings documentation.', array('@plantings_doc_url' => url('https://farmOS.org/guide/assets/plantings'))); + return t('Plantings can be used to represent groups of plants (eg: a field of corn, or a group of seedlings), or they can be used to represent individual plants (eg: in the case of nurseries). For more information, see the Plantings documentation.', array('@plantings_doc_url' => url('https://v1.farmOS.org/guide/assets/plantings'))); } // View of Seedings. elseif ($path == 'farm/logs/seedings') { - return t('Seeding logs represent when Planting assets are seeded directly into the ground (or into containers). For more information, see the Plantings documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://farmOS.org/guide/assets/plantings'))); + return t('Seeding logs represent when Planting assets are seeded directly into the ground (or into containers). For more information, see the Plantings documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://v1.farmOS.org/guide/assets/plantings'))); } // View of Transplantings. elseif ($path == 'farm/logs/transplantings') { - return t('Transplanting logs represent when Planting assets are transplanted from one place to another. For more information, see the Plantings documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://farmOS.org/guide/assets/plantings'))); + return t('Transplanting logs represent when Planting assets are transplanted from one place to another. For more information, see the Plantings documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://v1.farmOS.org/guide/assets/plantings'))); } } diff --git a/modules/farm/farm_group/farm_group.module b/modules/farm/farm_group/farm_group.module index 2a64aa598..6c3c51d32 100644 --- a/modules/farm/farm_group/farm_group.module +++ b/modules/farm/farm_group/farm_group.module @@ -11,7 +11,7 @@ include_once 'farm_group.features.inc'; */ function farm_group_help($path, $arg) { if ($path == 'farm/assets/groups') { - return t('Groups are a special asset type that can be used to organize other assets. For more information, see the Groups documentation.', array('@groups_doc_url' => url('https://farmOS.org/guide/assets/groups'))); + return t('Groups are a special asset type that can be used to organize other assets. For more information, see the Groups documentation.', array('@groups_doc_url' => url('https://v1.farmOS.org/guide/assets/groups'))); } } diff --git a/modules/farm/farm_help/farm_help.api.php b/modules/farm/farm_help/farm_help.api.php index 1647b0bfe..24c9e0051 100644 --- a/modules/farm/farm_help/farm_help.api.php +++ b/modules/farm/farm_help/farm_help.api.php @@ -31,7 +31,7 @@ function hook_farm_help_page() { // Add a link to farmOS.rog $output = array( - l('farmOS.org', 'https://farmos.org'), + l('v1.farmOS.org', 'https://v1.farmos.org'), ); return $output; } diff --git a/modules/farm/farm_help/farm_help.module b/modules/farm/farm_help/farm_help.module index 4ce0a5c87..2b5f2a071 100644 --- a/modules/farm/farm_help/farm_help.module +++ b/modules/farm/farm_help/farm_help.module @@ -12,7 +12,7 @@ function farm_help_help($path, $args) { // Help for the /farm/help path. case 'farm/help': - return '

' . t('This page contains links to helpful farmOS resources. For more information, visit farmOS.org.') . '

'; + return '

' . t('This page contains links to helpful farmOS resources. For more information, visit v1.farmOS.org.') . '

'; } } @@ -78,12 +78,12 @@ function farm_help_farm_help_page() { $output = array(); // Add general text. - $output[] = '

' . l('farmOS', 'https://farmos.org') . ' is built and maintained + $output[] = '

' . l('farmOS', 'https://v1.farmos.org') . ' is built and maintained by a community of volunteers. Some farmOS community resources are listed below.

'; // Add a link to the farmOS documentation. - $output[] = '

Documentation

' . l('https://farmOS.org', 'https://farmOS.org') . ''; + $output[] = '

Documentation

' . l('https://v1.farmOS.org', 'https://v1.farmOS.org') . ''; // Add a link to the farmOS forum. $output[] = '

Community Forum

' . l('https://farmOS.discourse.group', 'https://farmOS.discourse.group') . '

'; diff --git a/modules/farm/farm_map/farm_map_google/farm_map_google.module b/modules/farm/farm_map/farm_map_google/farm_map_google.module index 24f661796..1227b959e 100644 --- a/modules/farm/farm_map/farm_map_google/farm_map_google.module +++ b/modules/farm/farm_map/farm_map_google/farm_map_google.module @@ -29,7 +29,7 @@ function farm_map_google_form_farm_map_settings_form_alter(&$form, &$form_state, $form['farm_map_google_api_key'] = array( '#type' => 'textfield', '#title' => t('Google Maps API Key'), - '#description' => t('Google Maps layers require that you obtain an API key. Refer to the API Keys documentation on farmOS.org for instructions.', array('@doc' => 'https://farmos.org/hosting/apikeys/')), + '#description' => t('Google Maps layers require that you obtain an API key. Refer to the API Keys documentation on farmOS.org for instructions.', array('@doc' => 'https://v1.farmos.org/hosting/apikeys/')), '#default_value' => variable_get('farm_map_google_api_key', ''), ); } diff --git a/modules/farm/farm_sensor/farm_sensor_listener/farm_sensor_listener.module b/modules/farm/farm_sensor/farm_sensor_listener/farm_sensor_listener.module index c3d1e6952..7ed02e2e6 100644 --- a/modules/farm/farm_sensor/farm_sensor_listener/farm_sensor_listener.module +++ b/modules/farm/farm_sensor/farm_sensor_listener/farm_sensor_listener.module @@ -592,7 +592,7 @@ function farm_sensor_listener_settings_form($sensor, $settings = array()) { $form['public_api'] = array( '#type' => 'checkbox', '#title' => t('Allow public API read access'), - '#description' => t('Checking this box will allow data from this sensor to be queried publicly via the API endpoint without a private key. See the farmOS sensor guide for more information.', array('@sensor_url' => 'https://farmOS.org/guide/assets/sensors')), + '#description' => t('Checking this box will allow data from this sensor to be queried publicly via the API endpoint without a private key. See the farmOS sensor guide for more information.', array('@sensor_url' => 'https://v1.farmOS.org/guide/assets/sensors')), '#default_value' => isset($settings['public_api']) ? $settings['public_api'] : FALSE, ); @@ -613,7 +613,7 @@ function farm_sensor_listener_settings_form($sensor, $settings = array()) { from other web-connected devices. Use the information below to configure your device to begin posting data to this sensor. For more information, refer to the farmOS sensor guide.', - array('@sensor_url' => 'https://farmOS.org/guide/assets/sensors')), + array('@sensor_url' => 'https://v1.farmOS.org/guide/assets/sensors')), '#collapsible' => TRUE, '#collapsed' => TRUE, );