The drupal tag has no wiki summary.
0
votes
0answers
11 views
Is it kosher to dump output from template_init()?
I have a Drupal site with roughly the following in my template.php hook_init block:
function mytemplate_init() {
if (request_path() == "widgets_json") {
...
2
votes
1answer
44 views
The right way to get formatted node's body field in Drupal 7
I am wondering am I doing the right "Drupal" way in getting formatted value of node's body field. Here is my code:
$field = field_get_items('node', $node, 'body');
$body = '';
if ...
2
votes
1answer
68 views
Drupal: Placing Code (PHP) within the Drupal System (as well as css)
I have a node template that grabs fields from a content type.
In the node--[contenttype].tpl.php file I have two sections (The second is html/php and grabs variables from the first section or from ...
2
votes
2answers
67 views
Get unique entries from array
For a website I'm working on, I had to get all the unique entries in an array and count their occurrence. It is possible a certain entry is only found once, but it can also be found 20 times. So I ...
0
votes
1answer
106 views
Basic function to output repeating dates from iCal format
I have a function that implements parts of reading iCal repetition rules, and returns a list of dates when a certain event takes place.
Questions/Concerns of mine
Any comments on the use of ...