Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi,
Thanks for your great module. Trying to get it to work in a new (yet to be released) add-on module. Just found out that while we have an create and a delete function for ACL, we don't have an update function yet.
My module creates ACL's automatically and assigns them a name. It seems I can't find a function to update that name again?
Simple patch below
Comment | File | Size | Author |
---|---|---|---|
provice-acl-update-function.patch | 564 bytes | splash112 | |
Comments
Comment #1
salvisI'm willing to add this new function. However...
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_wr... seems to indicate that you need to pass in the name of the primary key. Have you tested this new function?
Returning the $acl_id doesn't make much sense — the caller already has that. Return the result of drupal_write_record() instead.
We've started to write some tests. Please add a test for acl_update_acl().
Comment #2
salvis