Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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