Timeline for Share webservice output between tpl
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 30, 2015 at 6:10 | comment | added | avpaderno♦ |
As I said. list_view() will never be called because Drupal loads the list-view.tlp.php file instead, as for your instructions in EXAMPLE_theme() . That is in the case no other module defines list_view as theme function: if that is the case, there is probably a conflict. And if that is the case, you cannot use hook_theme() .
|
|
Nov 30, 2015 at 6:00 | comment | added | jagmitg | @kiamlaluno there is a tpl called list-view and im using variables stored within those items. That function just populates it with data | |
Nov 30, 2015 at 5:54 | comment | added | avpaderno♦ |
As side note, since your theme function is defined to use a template, list_view() will never be called. If it were, theme('list_view', $items) would cause an infinite loop, since it would be calling that theme function over and over. Also, it is good practice to prefix a theme function with theme_ and the short name of the module. And if you are overriding another theme function. hook_theme() doesn't work.
|
|
Nov 30, 2015 at 5:49 | history | edited | avpaderno♦ |
edited tags
|
|
Nov 30, 2015 at 5:44 | history | asked | jagmitg | CC BY-SA 3.0 |