Last active
January 4, 2016 04:19
-
-
Save khalib/8567386 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Hook theme. | |
| function tlr_learning_rating_theme() { | |
| return array( | |
| 'learning_rating_rate' => array( | |
| 'template' => 'templates/block_learning_rating_rate', | |
| ), | |
| ); | |
| } | |
| ?> | |
| <!-- Somewhere in a template file. --> | |
| <?php print theme('learning_rating_rate'); ?> | |
| <?php | |
| // Somewhere in a module file where you are passing view data to be displayed. | |
| $array_of_data = array(); // Fetch some view data. | |
| print theme('learning_rating_rate', $array_of_data); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment