You are here

function panels_sections_block in Panels Sections 6

Same name and namespace in other branches
  1. 6.2 panels_sections.module \panels_sections_block()

Implementation of hook_block

  • provides Panels Content Placeholder (%CONTENT%) block for panels stuffing

File

./panels_sections.module, line 412
Allows you to define panels_sections of your site and apply s to those panels_sections.

Code

function panels_sections_block($op = 'list', $delta = 0) {

  //emspace_profile_css_insert();
  switch ($op) {
    case 'list':
      $blocks[0]['info'] = t('Panels Content Placeholder');
      return $blocks;
    case 'view':
      if ($delta == 0) {
        $block['subject'] = t('Panels Content Placeholder');
        $block['content'] = '%CONTENT%';
        return $block;
      }
  }
}