Closed (fixed)
Project:
Taxonomy Access Control
Version:
7.x-1.0-rc1
Component:
Documentation
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Apr 2012 at 19:05 UTC
Updated:
1 Jun 2012 at 13:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
doublejosh commentedComment #2
xjmOops. :)
This would be a good issue for a novice to patch. Inspect the function parameters for this function, confirm the issue @doublejosh has identified here, and create a patch to update the parameter documentation and correct the parameter name accordingly.
Comment #3
TyrelDenison commentedI'd be glad to make this patch, though I am not using this module. Just dove into the Novice queue. To make sure I understand the issue, basically you're needing any instance of the word "rows" to become "roles" in the specified lines of taxonomy_access.module(lines 1194,1195 in the documentation and lines 1205,1208,1209,1219 & 1220 in the function itself). Is this correct?
Comment #4
doublejosh commented@param $ridis no longer present.@param (array) $grant_rowsnow includes the role.The array should be built using
_taxonomy_access_format_grant_record($id, $rid, array $grants, $default = FALSE)Comment #5
TyrelDenison commentedOk, getting there. Documentation needs to looks like this?
Easy enough if I am following you. Do I also need to update the summary for $grant_rows?
Now for the real work(at least for the noob). Is it as simple as
Comment #6
doublejosh commentedProbably don't need to update the summary.
If you want to it could be: "An array of grant rows formatted for Schema API, keyed by vocabulary ID for each role grant."
If someone was to use this function they would use _taxonomy_access_format_grant_record to create the rows like so...
BTW: It appears that taxonomy_access_set_term_grants doesn't have this same doc issue.
Comment #7
TyrelDenison commentedSorry to just now be getting back to this. I was pulled away with a site launch that is a nightmare (and I'm still stuck in it). Anyways, I reread the thread and think I might be making more work for myself than necessary with this. I will therefore now ask a stupid question. For the desired patch, do I need to simply update the documentation, or do I need to edit the taxonomy_access_set_default_grants function as well? Thanks for your patience and clarity.
Comment #8
doublejosh commentedJust the comments are wrong.
This module is useful from outside the module, so it matter to keep it up to date.
Comment #9
TyrelDenison commentedOk, here is the patch. I believe I updated the status correctly. Let me know if I need to change anything or do anything differently. I'm working on my patching skills.
Comment #10
doublejosh commentedThat'll do.
Presuming it applies, which the bot has confirmed.
Comment #11
TyrelDenison commentedSo we can close this out then, yes?