XenForo developer

$contents holds any contents within the hook tag or those added by other, umm, let's call them "users of hooks". I'm sure you can come up with an inappropriate name for them. In this case, there are no children to the hook.