? test.patch Index: fbconnect.admin.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fbconnect/fbconnect.admin.inc,v retrieving revision 1.10 diff -u -p -r1.10 fbconnect.admin.inc --- fbconnect.admin.inc 3 Jun 2009 13:51:06 -0000 1.10 +++ fbconnect.admin.inc 11 Jan 2010 17:12:20 -0000 @@ -67,7 +67,11 @@ function fbconnect_admin_settings() { '#title' => t('Destination, after user\'s valid or skip invite friend form'), '#default_value' => variable_get('fbconnect_invite_dest', $base_url), ); - + $form['fbconnect_profile_error'] = array( + '#type' => 'textarea', + '#title' => t('User profile page error'), + '#default_value' => variable_get('fbconnect_profile_error', t('Your account is not linked with a Facebook account or you are not authorized to edit the Facebook connect settings for this account.')), + ); if (fbconnect_get_config()) { $button = array( 'small_short' => fbconnect_render_button('small', 'short'), @@ -101,6 +105,7 @@ function fbconnect_admin_settings() { } function fbconnect_set_appproperties($form, &$form_state) { + variable_set('fbconnect_profile_error',$form_state['values']['fbconnect_profile_error']); if (!facebook_client()) { drupal_set_message(t('Unable to get a facebook client, check your api key'), 'error'); return FALSE; @@ -127,4 +132,4 @@ function fbconnect_set_appproperties($fo drupal_set_message(t('Your facebook app settings has been updated')); } -} \ No newline at end of file +} Index: fbconnect.pages.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fbconnect/fbconnect.pages.inc,v retrieving revision 1.13 diff -u -p -r1.13 fbconnect.pages.inc --- fbconnect.pages.inc 3 Jun 2009 13:51:06 -0000 1.13 +++ fbconnect.pages.inc 11 Jan 2010 17:12:20 -0000 @@ -110,7 +110,7 @@ function fbconnect_user_identities($user return drupal_get_form('fbconnect_user_settings_form'); } else { - return t('Your account is not linked with a Facebook account or you are not authorized to edit the Facebook connect settings of this account.'); + return variable_get('fbconnect_profile_error', t('Your account is not linked with a Facebook account or you are not authorized to edit the Facebook connect settings of this account.'); } } @@ -200,4 +200,4 @@ function fbconnect_render_friends_invite '; return $output; -} \ No newline at end of file +}