Change all relevant links from farmOS.org to v1.farmOS.org.

This commit is contained in:
Michael Stenta 2021-12-21 19:18:39 -05:00
parent d16a63a241
commit ad4725c12f
11 changed files with 16 additions and 16 deletions

View File

@ -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'; \

View File

@ -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.

View File

@ -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 <a href="@doc">Google Maps API Key</a> 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 <a href="@doc">Google Maps API Key</a> 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', ''),
);

View File

@ -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 <a href="!url">!url</a>.', 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 <a href="!url">!url</a>.', array('!url' => 'https://v1.farmOS.org/hosting/updating')), 'error');
$form['actions']['#access'] = FALSE;
}

View File

@ -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 <a href="@area-doc-url">@area-doc-url</a>', 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 <a href="@area-doc-url">@area-doc-url</a>', array('@area-doc-url' => 'https://v1.farmos.org/guide/areas')),
),
'formatter' => 'collapsible',
),

View File

@ -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 <a href="@plantings_doc_url">Plantings</a> 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 <a href="@plantings_doc_url">Plantings</a> 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 <a href="@plantings_url">Planting assets</a> are seeded directly into the ground (or into containers). For more information, see the <a href="@plantings_doc_url">Plantings</a> documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://farmOS.org/guide/assets/plantings')));
return t('Seeding logs represent when <a href="@plantings_url">Planting assets</a> are seeded directly into the ground (or into containers). For more information, see the <a href="@plantings_doc_url">Plantings</a> 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 <a href="@plantings_url">Planting assets</a> are transplanted from one place to another. For more information, see the <a href="@plantings_doc_url">Plantings</a> documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://farmOS.org/guide/assets/plantings')));
return t('Transplanting logs represent when <a href="@plantings_url">Planting assets</a> are transplanted from one place to another. For more information, see the <a href="@plantings_doc_url">Plantings</a> documentation.', array('@plantings_url' => url('farm/assets/plantings'), '@plantings_doc_url' => url('https://v1.farmOS.org/guide/assets/plantings')));
}
}

View File

@ -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 <a href="@groups_doc_url">Groups</a> 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 <a href="@groups_doc_url">Groups</a> documentation.', array('@groups_doc_url' => url('https://v1.farmOS.org/guide/assets/groups')));
}
}

View File

@ -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;
}

View File

@ -12,7 +12,7 @@ function farm_help_help($path, $args) {
// Help for the /farm/help path.
case 'farm/help':
return '<p>' . t('This page contains links to helpful farmOS resources. For more information, visit <a href="https://farmOS.org">farmOS.org</a>.') . '</p>';
return '<p>' . t('This page contains links to helpful farmOS resources. For more information, visit <a href="https://v1.farmOS.org">v1.farmOS.org</a>.') . '</p>';
}
}
@ -78,12 +78,12 @@ function farm_help_farm_help_page() {
$output = array();
// Add general text.
$output[] = '<p>' . l('farmOS', 'https://farmos.org') . ' is built and maintained
$output[] = '<p>' . l('farmOS', 'https://v1.farmos.org') . ' is built and maintained
by a community of volunteers. Some farmOS community resources are listed
below.</p>';
// Add a link to the farmOS documentation.
$output[] = '<h3>Documentation</h3><p>' . l('https://farmOS.org', 'https://farmOS.org') . '</h3>';
$output[] = '<h3>Documentation</h3><p>' . l('https://v1.farmOS.org', 'https://v1.farmOS.org') . '</h3>';
// Add a link to the farmOS forum.
$output[] = '<h3>Community Forum</h3><p>' . l('https://farmOS.discourse.group', 'https://farmOS.discourse.group') . '</p>';

View File

@ -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 <a href="@doc">API Keys</a> 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 <a href="@doc">API Keys</a> documentation on farmOS.org for instructions.', array('@doc' => 'https://v1.farmos.org/hosting/apikeys/')),
'#default_value' => variable_get('farm_map_google_api_key', ''),
);
}

View File

@ -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 <a href="@sensor_url">farmOS sensor guide</a> 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 <a href="@sensor_url">farmOS sensor guide</a> 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 <a href="@sensor_url">farmOS sensor guide</a>.',
array('@sensor_url' => 'https://farmOS.org/guide/assets/sensors')),
array('@sensor_url' => 'https://v1.farmOS.org/guide/assets/sensors')),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);