Commit Graph

53 Commits

Author SHA1 Message Date
Paul Weidner 5f80906a23 Use correct order of parameters in implode function. 2020-07-15 11:56:18 -04:00
Michael Stenta 8158d9535e Use farm_term() in place of taxonomy_get_term_by_name(). 2020-06-02 08:43:25 -04:00
Michael Stenta 8f01b05a58 Add note to farm_log_entity_label_summary() emphasizing that it is the responsibility of downstream code to sanitize entity labels. 2020-04-23 11:30:02 -04:00
Michael Stenta 9b1a87dcbe Translate untranslated drupal_set_message() function calls. 2020-04-23 10:46:19 -04:00
Michael Stenta bcc0a55039 Be more explicit with $type parameter docblock in log query functions. 2019-06-26 14:28:21 -04:00
Michael Stenta 97119dbd5a Allow filtering to find logs that are not done with farm_log_query(). 2019-06-26 14:27:47 -04:00
Michael Stenta 7b506bc536 Add query tags in query helper functions. 2019-04-01 15:56:53 -04:00
Michael Stenta 959ceffc6c farm_log_create(): truncate log names that are too long automatically. 2019-01-03 14:37:28 -05:00
Michael Stenta 3e03174c61 Create an internal machine name for farm access roles. 2018-12-27 10:42:37 -05:00
Michael Stenta 8eee53de2f Add help text to the log timestamp field. 2018-11-14 11:54:03 -05:00
Michael Stenta f630236dc9 Change farm_log hook_form_alter() to hook_form_FORM_ID_alter(). 2018-11-14 11:46:36 -05:00
Michael Stenta 84d31b87b4 Auto populate log owner on presave(), so that API requests are also covered. 2018-11-09 15:46:49 -05:00
Michael Stenta a798e64cd0 Use new farm_term() function where possible. 2018-10-01 14:49:24 -04:00
Michael Stenta 7be4c7e19c Add the asset and log IDs to entity view pages. 2018-09-05 14:22:43 -04:00
Michael Stenta ed67950aa5 Add the ability to filter by log type in farm_log_query() and farm_log_asset_query(). 2018-09-05 14:08:14 -04:00
Michael Stenta 6566d88e1f Add the ability to pass notes and log categories into farm_log_create() and farm_quantity_log_create(). 2018-08-01 13:38:00 -04:00
Michael Stenta 06bc4a24bc Add asset, log, and plan types to entity view pages so it's clear what you're looking at. 2018-06-13 13:00:10 -04:00
Michael Stenta e5d68d9b2b Only include log types with field_farm_asset in "Add log" action configuration form. 2018-04-24 08:37:46 -04:00
Michael Stenta c516f917b6 Add a simple bulk action for adding a log to a set of assets. 2018-04-23 17:49:46 -04:00
Michael Stenta 6ac30f5b88 Add a helper function for generating a summary of entity labels for use in a log name. 2018-04-23 16:25:28 -04:00
Michael Stenta f2af8972af Add a generic helper function for creating a farm log. 2018-04-17 13:47:32 -04:00
Michael Stenta ffb5a8fd10 Allow modules to alter information about fields that should be prepopulated in log forms. 2018-03-02 12:20:43 -05:00
Michael Stenta c27f2ec10f Pass log type into hook_farm_log_prepopulate_reference_fields(). 2018-03-02 12:20:43 -05:00
Michael Stenta 2550e19f8d Add hook_farm_log_prepopulate_reference_fields() to allow modules to provide information about fields that can be prepopulated in log forms. 2018-03-02 12:20:43 -05:00
Michael Stenta 6536414772 Make $asset_id parameter optional in farm_log_asset_query(). 2017-12-07 17:38:53 -05:00
Michael Stenta 1af21d48b9 Use innerJoin()s where possible. 2017-12-07 17:38:52 -05:00
Michael Stenta ef6a04614d Use is_numeric() instead of is_int() when checking log timestamps and entity IDs. 2017-11-24 20:59:17 -05:00
Michael Stenta d27a9114c8 Make farm_log_query() range limit optional with a new $single parameter. 2017-11-24 20:57:47 -05:00
Michael Stenta 6d39abe4d9 Remove $log_id_field parameter from farm_log_query() to simplify. Add the field where needed. 2017-11-24 20:57:47 -05:00
Michael Stenta c0cd29b5de Minor comment fixes. 2017-11-14 13:43:11 -05:00
Michael Stenta 529c882f18 Remove $asset_filter parameter from farm_log_asset_query() because it is no longer necessary. 2017-11-14 13:43:11 -05:00
Michael Stenta 2002a3bc0e Further abstract farm_log_asset_query() by creating an even more general farm_log_query(). 2017-11-14 13:43:11 -05:00
Michael Stenta 89435b551f Generalize the query function for selecting logs that reference an asset, so farm_inventory can use it. 2017-11-14 13:43:11 -05:00
Michael Stenta 00d1f17132 Make it possible to append or replace assignments. 2017-08-30 13:13:46 -04:00
Michael Stenta 3d4c24070f Create an action for assigning logs to users in bulk. 2017-08-29 17:51:01 -04:00
Michael Stenta 8d121ad75e Autopopulate categories on certain log types. 2017-08-06 13:52:23 -04:00
Michael Stenta 6b0fe1d259 Allow prepopulating log categories from query parameter. 2017-07-17 14:45:58 -04:00
Michael Stenta 13090d01c0 Merge farm_log_ids_from_url() into farm_log_prepopulate_log_form_references(). 2017-07-17 14:45:58 -04:00
Michael Stenta 4cc5523d08 Allow prepopulating log names from query parameter. 2017-07-17 14:45:58 -04:00
Michael Stenta f641a65631 Move entityreference prepopulation helper function from farm_log.module to farm_fields.module. 2017-07-11 08:24:55 -04:00
Michael Stenta 35dc4580c2 Consolidate log entityreference field prepopulation logic. 2017-07-11 08:24:55 -04:00
Michael Stenta 58fc9e86b4 Make log field prepopulation function params and returns consistent. 2017-07-11 08:24:55 -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 9fe05a18b2 Consolidate area, asset, log, and user action links into farm_ui module. 2017-06-27 15:39:30 -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 930c8a2cc9 Consolidate default log CRUD permissions for all log types in farm_log.module. 2017-06-27 15:39:29 -04:00
Michael Stenta 449a465c98 Move hook_farm_admin_actions() to new farm_ui module as hook_farm_ui_action(). 2017-06-27 15:39:29 -04:00
Michael Stenta 559c6a13dc Automatically populate log owner fields with the currently logged in user (if empty). 2017-06-13 15:55:04 -04:00
Michael Stenta b655ea9d3f Minor comment change. 2017-06-13 15:55:04 -04:00