You are here

function fb_connect_fb_admin in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 fb_connect.admin.inc \fb_connect_fb_admin()
  2. 7.3 fb_connect.admin.inc \fb_connect_fb_admin()

Implementation of hook_fb_admin().

File

./fb_connect.admin.inc, line 11
Admin pages and forms for connect settings.

Code

function fb_connect_fb_admin($op, $data, &$return) {
  if ($op == FB_ADMIN_OP_SET_PROPERTIES) {

    // We need to set the Facebook Connect URL, but currently Facebook's APIs do not allow it.
    $return['connect_url'] = fb_connect_get_connect_url($data['fb_app']);
  }
  elseif ($op == FB_ADMIN_OP_LIST_PROPERTIES) {
    $return[t('Connect URL')] = 'connect_url';
  }
}