function fb_devel_block in Drupal for Facebook 6.3
Same name and namespace in other branches
- 5.2 fb_devel.module \fb_devel_block()
- 5 fb_devel.module \fb_devel_block()
- 6.2 fb_devel.module \fb_devel_block()
Implements hook_block().
File
- ./
fb_devel.module, line 547 - Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.
Code
function fb_devel_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$items[0]['info'] = t('Facebook Devel Page Info');
return $items;
}
elseif ($op == 'view') {
if (user_access('access devel information')) {
return array(
'subject' => t('Facebook Devel Info'),
'content' => drupal_get_form('fb_devel_info'),
);
}
}
}