You are here

function _gravatar_get_size in Gravatar integration 6

Same name and namespace in other branches
  1. 5 gravatar.module \_gravatar_get_size()

Get the size in pixels of the gravatar.

Return value

An integer representing a square image size in pixels.

2 calls to _gravatar_get_size()
gravatar_admin_settings in ./gravatar.admin.inc
Administration settings form.
gravatar_get_gravatar in ./gravatar.module
Generate a gravatar URL.

File

./gravatar.module, line 341
Integrates gravatar service for user pictures.

Code

function _gravatar_get_size() {
  static $size = NULL;
  if (!isset($size)) {
    $size = min(explode('x', variable_get('user_picture_dimensions', '85x85') . 'x' . GRAVATAR_SIZE_MAX));
  }
  return $size;
}