jmodule_render_module($module, $attribs = array())

Render a module object.

  1. Parameters
  2. Returns
  3. Examples

Parameters

  • object $module Object containing module information
  • array $attribs [optional] Array of attributes for the module (probably from the XML).

Returns

\string Rendered module.

Examples


{#  Retrieve and display all the modules in a sidebar position #}
{% for module in jmodule_get_modules('sidebar') %}
	{{ jmodule_render_module(module) }}
{% endfor %}