Drupal

How to Programmatically Insert a View into a Drupal Node

Inserting a Drupal 6 view into a node or template file with PHP is easy. Just use the code below:

<?php
$viewName
= 'the_name_of_my_view';
$display_id = 'block_1';
print
views_embed_view($viewName, $display_id);
?>

How to increase the memory limit in Drupal

Quick way to increase PHP memory limit in Drupal: add the following line to the file located at /sites/default/settings.php:

ini_set('memory_limit','64M');

Syndicate content