Where All Function Stored
sumitshekhawat7331 - August 19, 2008 - 09:27
hello
Please help me to find...
from where all the processing has been done.
like from where $right display right content
$left display left content
$content display middle content
can anybody tell me the file name

theme docs
I assume you are talking about your themes output.
If your theme is using phptemplate (core default) then you should have a look at the handbook pages on theming.
When using phptemplate you should never need to hack any module or core code. You should be able to override the output of most content.
Overriding themable output
http://drupal.org/node/173880
Theming overview
http://drupal.org/node/171188
Preprocess functions
http://drupal.org/node/223430
PHPTemplate theme engine
http://drupal.org/phptemplate
thanks
hi thanks for your reply
Actually i am trying to create my own theme from a HTML template.
So i want to know from where $right $left etc get content.
As the other posted
As the other posted suggestion, if you're going to be making your own theme, you really need to read the docs. However, in any case, regions (i.e. $right, $left, $content, etc.) generally get their content by blocks assigned at admin/build/block.
===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime." -- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz
thanks for reply
hi thanks for your reply but i want to know the core function . From where $right or $left get data. means actual coding
More info
If you are using phptemplate you can put the flowing code into any tpl.php file. This will list all php variables available to that file.
You can also make your own variables available using the template.php file but that requires coding.
<?phpforeach($variables as $name => $content) {
print $name .'<br />';
}
?>
More good handbook pages.
Anatomy of a Drupal theme
http://drupal.org/node/171194
Default baseline variables
http://drupal.org/node/226776
Page.tpl.php
http://drupal.org/node/11812
Using different page templates depending on the current path
http://drupal.org/node/104316
coder?
And if you are a coder don’t forget about http://api.drupal.org
You can lookup any core function at that site.
For example the reason you are able to use the above code is because of this function.
D6
http://api.drupal.org/api/function/theme_render_template/6
D5
http://api.drupal.org/api/function/_phptemplate_render/5