You are here

function block_access_add_role in Block Access 6.2

Same name and namespace in other branches
  1. 6 block_access.db.inc \block_access_add_role()
  2. 7 block_access.db.inc \block_access_add_role()
1 call to block_access_add_role()
block_access_config_set_roles in ./block_access.module

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);
}