As we spoke on IRC, this is because ctools_user_picture_ctools_content_types() in user_picture.inc is not returning anything, hence the content type is not available on the add user section for the content window.

It should be:

/**
 * Callback function to supply a list of content types.
 */
function ctools_user_picture_ctools_content_types() {
  return array(
    'single' => TRUE,
    'title' => t('User picture'),
    'icon' => 'icon_user.png',
    'description' => t('The picture of a user.'),
    'required context' => new ctools_context_required(t('User'), 'user'),
    'category' => t('User'),
  );
}

With that change, it's working perfectly =)

Comments

merlinofchaos’s picture

Status: Active » Fixed

Fixed! Thanks for finding this!

manuel garcia’s picture

Glad to help mr chaos -- and thanks for a swift response & fix!

Status: Fixed » Closed (fixed)

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