Browsing "Drupal"
Feb 9, 2012 - Drupal 7    Comments Off on Bulk hide comments

Bulk hide comments

UPDATE drpl_node SET comment = 0 WHERE type = 'article';
UPDATE drpl_node_revision SET comment = 0 WHERE nid IN (SELECT nid FROM drpl_node WHERE type = 'article');
Jan 20, 2012 - Drupal 7    Comments Off on Front page template

Front page template

On Drupal 7, use page–front.tpl.php. Note the double dash.

Jan 20, 2012 - Drupal 7    Comments Off on Block embedding in a theme

Block embedding in a theme

Drupal 7:

<?php
$block = module_invoke('ddblock', 'block_view', '1');
print $block['content'];
?>