$layout.moduleItemLinks array population anyone?

trungie

Joined: 2004-08-24
Posts: 15
Posted: Thu, 2004-08-26 03:08

This code snip is from layouts/matrix/templates/sidebar.tpl:

...
  {* Album actions, if there are any *}
  {if (isset($layout.moduleItemLinks[$layout.item.id]))}
  <div class="gbMenu">
    <h3 class="giTitle">{g->text text="Actions"}</h3>
    <ul>
      {foreach from=$layout.moduleItemLinks[$layout.item.id] item=link}
      <li><a href="{$link.url}">{$link.text}</a></li>
      {/foreach}
    </ul>
  </div>
  {/if}
...

I want to know, where along the execution path, or even the filename and line number where the $layout.moduleItemLinks array gets populated.

Thanks

 
trungie

Joined: 2004-08-24
Posts: 15
Posted: Thu, 2004-08-26 03:49

I found it, It's actually populated in the file modules/core/classes/GalleryLayout.class.

So now off i go to learn more about module development!

The more i look at the source, the more i appreciate every effort put into this KING piece of software.. !!