not sure if this can be done: could the Default Picture (as defined in user settings) be made configurable in Domain Conf?
In my use case I have a single user DB, users can register on any domain and post to any domain, and their Default picture should be associated with the domain they originally registered with.

Comments

agentrickard’s picture

It could. See http://drupal.org/node/202671 for a similar request.

I think I will implement a hook_domainconf() that will allow you to append extra elements to the domain-specific configuration form.

But then you would need a small module to implement this feature.

agentrickard’s picture

Status: Active » Fixed

hook_domainconf() implemented in HEAD. Your module would need this function:


function mymodule_domainconf($domain) {
  $form['pictures']['user_picture_default'] = array(
    '#type' => 'textfield', 
    '#title' => t('Default picture'), 
    '#default_value' => variable_get('user_picture_default', ''), 
    '#size' => 30, 
    '#maxlength' => 255, 
    '#description' => t('URL of picture to display for users with no custom picture selected. Leave blank for none.')
  );
  return $form;
} 
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.