Rename hook_farm_client_modules() to hook_farm_client_module_info().

This commit is contained in:
paul121 2020-02-04 14:13:43 -08:00 committed by Michael Stenta
parent 1102f26ae9
commit 5d17f01bca
2 changed files with 3 additions and 3 deletions

View File

@ -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',

View File

@ -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();