Implements hook_admin_paths().
function overlay_admin_paths() {
$paths = array(
// This is marked as an administrative path so that if it is visited from
// within the overlay, the user will stay within the overlay while the
// callback is being processed.
'overlay/dismiss-message' => TRUE,
);
return $paths;
}