realm == 'mymodule_myrealm') { if ($row->grant_view) { $name = db_result(db_query('SELECT name FROM {role} WHERE rid = %d', $row->gid)); return 'Role ' . theme_placeholder($name) . ' may view this node.'; } else { return 'No access.'; } } } /** * @} End of "addtogroup hooks". */