3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Leverage new 'views' array in hook_farm_admin_actions().

This commit is contained in:
Michael Stenta 2015-03-14 10:58:18 -04:00
parent 5955d6b5de
commit e38c59a2f9
2 changed files with 5 additions and 6 deletions

View file

@ -16,10 +16,8 @@ function farm_livestock_farm_admin_actions() {
'animal' => array(
'title' => t('Add an animal'),
'href' => 'farm/asset/add/animal',
'paths' => array(
'farm/area/%/animals',
'farm/livestock',
'farm/livestock/animals',
'views' => array(
'farm_animals',
),
),
);

View file

@ -16,8 +16,9 @@ function farm_livestock_eggs_farm_admin_actions() {
'eggs' => array(
'title' => t('Add eggs'),
'href' => 'log/add/farm_eggs',
'paths' => array(
'farm/livestock/eggs',
'views' => array(
'farm_animals',
'farm_log_eggs',
),
),
);