You are here

function facebook_pull_block in Facebook Pull 6

Implementation of hook_block().

File

./facebook_pull.module, line 67

Code

function facebook_pull_block($op = 'list', $delta = 0, $edit = array()) {
  switch ($op) {
    case 'list':
      $blocks = array();
      $blocks['facebook_pull_default'] = array(
        'info' => t('Facebook stream'),
        'weight' => 0,
        'status' => 0,
        'cache' => BLOCK_CACHE_GLOBAL,
      );
      return $blocks;
    case 'view':
      $block = array(
        'subject' => t('Facebook'),
        'content' => _facebook_pull_render_block(),
      );
      return $block;
  }
}