Skip to main content
deleted 2 characters in body
Source Link
Shyghar
  • 1.1k
  • 16
  • 30

[RESOLVED][SOLVED] I did a preprocess like:

function module_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

[RESOLVED] I did a preprocess like:

function module_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

[SOLVED] I did a preprocess like:

function module_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

deleted 14 characters in body
Source Link
Shyghar
  • 1.1k
  • 16
  • 30

[RESOLVED] I did a preprocess like:

function wfp_homepage_context_preprocess_blockmodule_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

[RESOLVED] I did a preprocess like:

function wfp_homepage_context_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

[RESOLVED] I did a preprocess like:

function module_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.

Source Link
Shyghar
  • 1.1k
  • 16
  • 30

[RESOLVED] I did a preprocess like:

function wfp_homepage_context_preprocess_block(&$vars, $hook) {
    $to_delete = array('block_delta_1', 'block_delta_2')
    if(in_array($vars['block']->delta , $to_delete)){
        $vars['template_files'][0] = 'block-empty'; 
    }
    }

and i add an empty block-empty.tpl.php in my theme.