function block_access_add_role in Block Access 6.2
Same name and namespace in other branches
- 6 block_access.db.inc \block_access_add_role()
- 7 block_access.db.inc \block_access_add_role()
1 call to block_access_add_role()
File
- ./
block_access.db.inc, line 24
Code
function block_access_add_role($rid, $module, $perm, $delta = null) {
db_query("\n INSERT INTO {block_access_roles}\n (\n rid,\n module,\n delta,\n permission\n )\n VALUES\n (\n %d,\n '%s',\n '%s',\n '%s'\n )", $rid, $module, $delta, $perm);
}