theme_hook process: calling a theme function not working(example from DGD7)
First of all, your theme_xray_appearance_summary should be theme_appearance_summary, and should take $variables by reference: &amp;$variables.

Second of all, hook_help() expects you to return a string, but your implementation returns the data from xray_appearance_summary(), which returns an array, thus the error you're getting.