type) . ' content'; $subjects[] = 'unpublish ' . check_plain($type->type) . ' content'; $replacements[] = 'publish any ' . check_plain($type->type) . ' content'; $replacements[] = 'unpublish any '. check_plain($type->type) . ' content'; } $new_perm = str_replace($subjects, $replacements, $row['perm']); $ret[] = array('success' => db_query($update_sql, $new_perm, $row['pid']), 'query' => t('Updated permission set @set', array('@set' => $row['pid']))); } variable_set('menu_rebuild_needed', TRUE); return $ret; }