You are here

function _modules_grants_prefix_match in Module Grants 7

1 call to _modules_grants_prefix_match()
module_grants_is_realm_by_module in ./module_grants.module
Check if realm belongs to module, copied from module_access

File

./module_grants.module, line 466

Code

function _modules_grants_prefix_match($prefix, $realm) {
  return strncmp($prefix, $realm, strlen($prefix)) == 0;
}