Remove Gravatar from core and add new hook avatar_lookup.
This patch removes all occurances of Gravatar from friendica's core and adds a new hook "avatar_lookup" inside the function avatar_img($email) where the new *avatar-plugins should hook in.
I haven't touched the language files yet. Are they updated automatically somehow?
@ -164,10 +164,15 @@ Your module functions will often contain the function plugin_name_content(&$a),
**'init_1'** - called just after DB has been opened and before session start
$b is not used or passed
**'page_end'** - called after HTML content functions have completed
$b is (string) HTML of content div
**'avatar_lookup'** - called when looking up the avatar
$b is (array)
'size' => the size of the avatar that will be looked up
'email' => email to look up the avatar for
'url' => the (string) generated URL of the avatar
A complete list of all hook callbacks with file locations (generated 14-Feb-2012): Please see the source for details of any hooks not documented above.
During registration, we will try to automatically find a user photo for you on the web using the gravatar service. You may turn this off by setting 'no_gravatar' to true. Default is false.
Config:
```
$a->config['system']['no_gravatar'] = true;
```
**OpenID**
By default, OpenID may be used for both registration and logins. If you do not wish to make OpenID facilities available on your system (at all), set 'no_openid' to true. Default is false.
@ -380,7 +377,6 @@ function admin_page_site(&$a) {
'$no_multi_reg'=>array('no_multi_reg',t("Block multiple registrations"),get_config('system','block_extended_register'),t("Disallow users to register additional accounts for use as pages.")),
'$no_openid'=>array('no_openid',t("OpenID support"),!get_config('system','no_openid'),t("OpenID support for registration and logins.")),
'$no_gravatar'=>array('no_gravatar',t("Gravatar support"),!get_config('system','no_gravatar'),t("Search new user's photo on Gravatar.")),
'$no_regfullname'=>array('no_regfullname',t("Fullname check"),!get_config('system','no_regfullname'),t("Force users to register with a space between firstname and lastname in Full name, as an antispam measure")),
'$no_community_page'=>array('no_community_page',t("Show Community Page"),!get_config('system','no_community_page'),t("Display a Community page showing all recent public postings on this site.")),