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
can't believe I only just found this module - loving it - much thanks :-))
attached is a function to add access rules as per the user_admin_access_form_submit() function
the new code is
/**
*
* @param $mask
* %: Matches any number of characters, even zero characters _: Matches exactly one character
* @param $type
* user, mail, host
* @param boolean $allow
* 1 means 0 means deny
*/
function install_add_access_rule($mask, $type, $allow){
db_query("INSERT INTO {access} (mask, type, status) VALUES ('%s', '%s', %d)", $mask, $type, $allow);
}
Comment | File | Size | Author |
---|---|---|---|
install_add_access_rule.patch | 781 bytes | seanburlington |