You are here

function fb_devel_block in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_devel.module \fb_devel_block()
  2. 6.3 fb_devel.module \fb_devel_block()
  3. 6.2 fb_devel.module \fb_devel_block()

File

./fb_devel.module, line 132

Code

function fb_devel_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $items[0]['info'] = t('Facebook Devel Canvas Page Info');
    return $items;
  }
  else {
    if ($op == 'view') {
      return array(
        'subject' => t('Facebook Devel Canvas Page'),
        'content' => drupal_get_form('fb_devel_canvas_info'),
      );
    }
  }
}