You are here

function fbconnect_user in Facebook Connect 6

Same name and namespace in other branches
  1. 5 fbconnect.module \fbconnect_user()
  2. 6.2 fbconnect.module \fbconnect_user()

Implementation of hook_user().

File

./fbconnect.module, line 678

Code

function fbconnect_user($op, &$edit, &$user, $category = NULL) {
  switch ($op) {
    case 'delete':
      db_query('DELETE FROM {fbconnect_users} WHERE uid = %d', $user->uid);
      break;
    case 'categories':
      return array(
        array(
          'name' => 'fbconnect',
          'title' => 'Facebook',
          'weight' => 3,
        ),
      );
  }
}