Commit Graph

2418 Commits

Author SHA1 Message Date
Michael Stenta 610784d38f Move farmOS help page code to new farm_help module. 2017-06-27 15:39:31 -04:00
Michael Stenta 5b3ba071e5 Use entity weight for ordering action links. 2017-06-27 15:39:31 -04:00
Michael Stenta e6168c3d3b Static cache the entity UI info gathered by farm_ui_entities(). 2017-06-27 15:39:31 -04:00
Michael Stenta 0377bde476 Fix: crop families are not directly related to plantings assets. 2017-06-27 15:39:31 -04:00
Michael Stenta 411dd57e53 Automatically add asset Views to other taxonomy terms provided by modules. 2017-06-27 15:39:31 -04:00
Michael Stenta 913e499e72 Automatically add movements View to all assets. 2017-06-27 15:39:31 -04:00
Michael Stenta fa31b85145 Automatically add children View to all assets (will only display if children exist). 2017-06-27 15:39:31 -04:00
Michael Stenta e4971aff05 Automatically generate a list of log Views to display on areas. 2017-06-27 15:39:31 -04:00
Michael Stenta 3120539ca7 Use the new area argument position function in farm_ui_area_links(). 2017-06-27 15:39:31 -04:00
Michael Stenta 0ded4a4408 Add a function that encapsulates logic for figuring out where the area ID argument is in a View. 2017-06-27 15:39:31 -04:00
Michael Stenta fc5d645ec6 Automatically generate a list of asset Views to display on areas. 2017-06-27 15:39:31 -04:00
Michael Stenta 3f16718b4a Merge hook_farm_ui_asset_views() and hook_farm_ui_taxonomy_views(). 2017-06-27 15:39:31 -04:00
Michael Stenta d644e54b6d Reorder logs so that they are roughly in the order that they will typically take place on an entity. 2017-06-27 15:39:31 -04:00
Michael Stenta 642e1187e1 Automatically generate a list of log Views to display on assets. 2017-06-27 15:39:31 -04:00
Michael Stenta 330872e802 Consolidate code for adding Views to asset and taxonomy pages. 2017-06-27 15:39:31 -04:00
Michael Stenta 0fb73ffcad Move hooks for adding Views to asset and term pages to farm_ui module. 2017-06-27 15:39:31 -04:00
Michael Stenta e3e8ddddbe Minor change to Farm UI module description. 2017-06-27 15:39:31 -04:00
Michael Stenta 2a185e5133 Consolidate all asset cluster map rendering into farm_ui module. 2017-06-27 15:39:30 -04:00
Michael Stenta 4f049c6009 Simplify area link generation and split asset and log lists. 2017-06-27 15:39:30 -04:00
Michael Stenta 5e5fac71d9 Move all area link generation logic to farm_ui module and remove hook_farm_area_links(). 2017-06-27 15:39:30 -04:00
Michael Stenta 6784b97bd3 Consolidate common area link generation code. 2017-06-27 15:39:30 -04:00
Michael Stenta 51f5cb906e Add area links for some log types. 2017-06-27 15:39:30 -04:00
Michael Stenta ee811350e3 Automatically generate area links for all asset types. 2017-06-27 15:39:30 -04:00
Michael Stenta 1073d8c613 Rename _farm_ui_action_link() to farm_ui_action_link(). 2017-06-27 15:39:30 -04:00
Michael Stenta 0060a95262 Remove hook_farm_ui_actions() because farm_ui is the only module implementing it now. 2017-06-27 15:39:30 -04:00
Michael Stenta 43ffaca789 Add action links to area pages. 2017-06-27 15:39:30 -04:00
Michael Stenta b9688b40d3 Only apply allowed asset reference type handling to the View: farm_asset_entityreference_view 2017-06-27 15:39:30 -04:00
Michael Stenta 386e967317 Automate allowed asset reference type handling so that hook_farm_ui_allowed_asset_reference_type() is no longer necessary. 2017-06-27 15:39:30 -04:00
Michael Stenta 01710232b4 Move allowed asset reference type handling from farm_log to farm_ui. 2017-06-27 15:39:30 -04:00
Michael Stenta 9130864f89 Add log action links to asset view pages. 2017-06-27 15:39:30 -04:00
Michael Stenta 8a83ed5791 Build breadcrumbs and action links for log entities in farm_ui module. 2017-06-27 15:39:30 -04:00
Michael Stenta 9b3fc109cc Remove "a"/"an" from default farm action links for consistency. 2017-06-27 15:39:30 -04:00
Michael Stenta 7b5c9f4358 Generalize entity action link creation to work for all entity types. 2017-06-27 15:39:30 -04:00
Michael Stenta cc7ce2b21d Use entity UI info to build breadcrumbs instead of hook_farm_ui_taxonomy_breadcrumb(). 2017-06-27 15:39:30 -04:00
Michael Stenta e7e5aa935f Add comments to hook_farm_ui_entities() in farm_ui.api.php. 2017-06-27 15:39:30 -04:00
Michael Stenta f0fc9e170e Move taxonomy breadcrumb handling into farm_ui module. 2017-06-27 15:39:30 -04:00
Michael Stenta e6e34b4d9d Refactor farm_ui_entity_view() breadcrumb code to make room for more entity types. 2017-06-27 15:39:30 -04:00
Michael Stenta 4718a89963 For each asset type, create an action link on its listing page. 2017-06-27 15:39:30 -04:00
Michael Stenta 10112e66c3 Use entity UI info to build breadcrumbs instead of hook_farm_ui_asset_breadcrumb(). 2017-06-27 15:39:30 -04:00
Michael Stenta f04e6b62fa Add hook_farm_ui_entities() for modules to define farmOS entity UI information. 2017-06-27 15:39:30 -04:00
Michael Stenta 8c69f16503 Move asset breadcrumb handling to farm_ui module. 2017-06-27 15:39:30 -04:00
Michael Stenta 82ca34a32a Install the new Farm People and UI modules via an update hook on existing sites. 2017-06-27 15:39:30 -04:00
Michael Stenta ab8562fed6 Split farm_people View out into new farm_people module. 2017-06-27 15:39:30 -04:00
Michael Stenta 9fe05a18b2 Consolidate area, asset, log, and user action links into farm_ui module. 2017-06-27 15:39:30 -04:00
Michael Stenta e03d661475 Move user and role_delegation perms from farm_admin to farm_access. 2017-06-27 15:39:29 -04:00
Michael Stenta e6d3d55d04 Remove 'view farm logs' permission in favor of 'view all logs'. 2017-06-27 15:39:29 -04:00
Michael Stenta 53be651d85 Further consolidate default asset, log, and term access perms into farm_access module itself. 2017-06-27 15:39:29 -04:00
Michael Stenta da33181cd1 Consolidate default taxonomy term CRUD permissions for all vocabularies in farm_taxonomy.module. 2017-06-27 15:39:29 -04:00
Michael Stenta 930c8a2cc9 Consolidate default log CRUD permissions for all log types in farm_log.module. 2017-06-27 15:39:29 -04:00
Michael Stenta 3f6b77ef6a Consolidate default asset CRUD permissions for all asset types in farm_asset.module. 2017-06-27 15:39:29 -04:00