On this page
FBSMP: Photo plugin
Last updated on
30 April 2025
Photo plugin provides the ability for users to publish images along with their status. It is simple to use plugin and achieves better interaction among the users of your site.
It provides integration with ImageCache module, so that images can be processed before they are displayed in the status streams.
Theme functions
- theme_fbsmp_photo_attachment_default($attachment, $settings = array())
- It returns the formatted uploaded photo using the provided settings.
* @param $attachment * The full attachment object. * @param $settings * (optional) An array which can have one or more of following keys: * - width * An integer specifying the width attribute of the img tag. * - height * An integer specifying the height attribute of the img tag. * - class * A string specifying the class attribute of the img tag. * - alt * A string specifying the alt text for the img tag. * - title * A string specifying the title text for the img tag. - theme_fbsmp_photo_attachment_imagecache($presetname, $style, $attachment, $alt = '', $title = '', $attributes = NULL)
- It themes the uploaded image using the provided imagecache preset.
* @param $presetname * A string specifying the presetname of the imagecache derivative. * @param $style * A string specifying one of the following style of the preset: * - 'default' * Themes the image without any style. * - 'imagelink' * Links the themed image to original image. * - 'path' * Returns the path of the imagecached image. * - 'url' * Returns the url of the imagecached image. * @param $attachment * The full attachment object. * @param $alt * A string specifying the alt text for the img tag. * @param $title * A string specifying the title text for the img tag. * @param attributes * An optional drupal attributes array. If attributes is set, the default imagecache classes * will not be set automatically, you must do this manually. *
Tokens
- photo-id
- The fid of the saved photo.
- photo-url
- The URL that can be used to download the photo.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion