$module_result variable actually holds of what was generated in the full view of a node, or a custom view. Views are <b>generated before</b> the pagelayout is, so there's no way to pass variables from pagelayout to view, but it is possible the other way round using <b>persistent variables</b>.