Rename hook_farm_client_modules() to hook_farm_client_module_info().
This commit is contained in:
parent
1102f26ae9
commit
5d17f01bca
|
@ -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',
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue