),
'mkdru_block_search' => array(
'template' => 'mkdru-block-search',
- 'arguments' => array('nid' => null, 'path' => NULL),
+ 'arguments' => array('nid' => NULL, 'path' => NULL),
),
-// 'mkdru_block_facet' => array(
-// 'template' => 'mkdru-block-facet',
-// 'arguments' => array('divId' => NULL),
-// ),
+ 'mkdru_block_facet' => array(
+ 'template' => 'mkdru-block-facet',
+ 'arguments' => array('class' => NULL)
+ )
);
}
case 'view':
switch ($delta) {
- // TODO: make the facet themable, I have no clue why this won't work
-// case 'mkdru_sources':
-// $block['subject'] = t('Source');
-// $block['content'] = theme('mkdru_block_facet', 'mkdru-sources');
-// return $block;
-// case 'mkdru_subjects':
-// $block['subject'] = t('Subject');
-// $block['content'] = theme('mkdru_block_facet', 'mkdru-subjects');
-// return $block;
-// case 'mkdru_authors':
-// $block['subject'] = t('Author');
-// $block['content'] = theme('mkdru_block_facet', 'mkdru-authors');
-// return $block;
case 'mkdru_sources':
$block['subject'] = t('Source');
- $block['content'] = '<div class="mkdru-facet mkdru-facet-sources"> </div>';
+ $block['content'] = theme('mkdru_block_facet', 'mkdru-facet-sources');
return $block;
case 'mkdru_subjects':
$block['subject'] = t('Subject');
- $block['content'] = '<div class="mkdru-facet mkdru-facet-subjects"> </div>';
+ $block['content'] = theme('mkdru_block_facet', 'mkdru-facet-subjects');
return $block;
case 'mkdru_authors':
$block['subject'] = t('Author');
- $block['content'] = '<div class="mkdru-facet mkdru-facet-authors"> </div>';
+ $block['content'] = theme('mkdru_block_facet', 'mkdru-facet-authors');
return $block;
}
if (substr($delta, 0, 13) == 'mkdru_search_') {