You are here

function exclude_node_title_update_6002 in Exclude Node Title 6

File

./exclude_node_title.install, line 26

Code

function exclude_node_title_update_6002() {
  $items = array();
  $items[] = update_sql("UPDATE {permission} p\n    SET p.perm = CONCAT(p.perm, ', use exclude node title')\n    WHERE p.perm NOT LIKE '%ignore node title exclusions%'");
  $items[] = update_sql("UPDATE {permission} p\n    SET p.perm = REPLACE(p.perm, ', ignore node title exclusions', '')\n    WHERE p.perm NOT LIKE '%ignore node title exclusions%'");
  return $items;
}