Index: components/block.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/patterns/components/block.inc,v retrieving revision 1.1.4.8 diff -u -8 -p -r1.1.4.8 block.inc --- components/block.inc 5 Mar 2009 16:38:35 -0000 1.1.4.8 +++ components/block.inc 16 Apr 2009 23:24:45 -0000 @@ -48,16 +48,18 @@ function block_patterns($op, $id = null, // convert role names to role IDs and get rid of all invalid entries foreach($data['roles'] as $key => $role) { if (is_string($role)) { $rid = db_result(db_query('SELECT rid FROM {role} WHERE name = "%s"', $role)); $roles[$rid] = $rid; } } $data['roles'] = $roles; + } else if ($data['roles'] == 'none') { + $data['roles'] = array(); } if (!empty($data['pages']) && is_array($data['pages'])) { $pages = implode("\r\n", $data['pages']); $data['pages'] = str_replace('[front]', '', $pages); } if (!($data['module'] && $data['delta']) && $data['info']) {