From 5d17f01bca5d3dcd401ddeb364b93bac688ef832 Mon Sep 17 00:00:00 2001 From: paul121 Date: Tue, 4 Feb 2020 14:13:43 -0800 Subject: [PATCH] Rename hook_farm_client_modules() to hook_farm_client_module_info(). --- modules/farm/farm_client/farm_client.api.php | 4 ++-- modules/farm/farm_client/farm_client.module | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/farm/farm_client/farm_client.api.php b/modules/farm/farm_client/farm_client.api.php index 09451d061..a771b4eba 100644 --- a/modules/farm/farm_client/farm_client.api.php +++ b/modules/farm/farm_client/farm_client.api.php @@ -27,9 +27,9 @@ * @return array * Returns an array of client module information. */ -function hook_farm_client_modules() { +function hook_farm_client_module_info() { return array( - array( + 'weather' => array( 'name' => 'weather', 'label' => t('Weather'), 'js' => drupal_get_path('module', 'farm_weather') . '/src/FieldModule/Weather/weather.js', diff --git a/modules/farm/farm_client/farm_client.module b/modules/farm/farm_client/farm_client.module index b3771b111..8efccb85a 100644 --- a/modules/farm/farm_client/farm_client.module +++ b/modules/farm/farm_client/farm_client.module @@ -26,7 +26,7 @@ function farm_client_farm_api_oauth2_client() { function farm_client_farm_info() { // Ask modules for client module info. - $client_modules = module_invoke_all('farm_client_modules'); + $client_modules = module_invoke_all('farm_client_module_info'); // Add the client module info to /farm.json. $info = array();