function block_access_delete_roles in Block Access 6.2
Same name and namespace in other branches
- 6 block_access.db.inc \block_access_delete_roles()
- 7 block_access.db.inc \block_access_delete_roles()
1 call to block_access_delete_roles()
File
- ./
block_access.db.inc, line 7
Code
function block_access_delete_roles($module, $perm, $delta = null) {
$sql = "\n DELETE FROM {block_access_roles} \n WHERE module = '%s'\n AND permission = '%s'\n ";
$args = array(
$module,
$perm,
);
if ($delta !== null) {
$sql .= "AND delta = '%s'";
$args[] = $delta;
}
else {
$sql .= "AND delta = ''";
}
db_query($sql, $args);
}