function _photos_filter_tips in Album Photos 7.3
Photos filter tips.
1 string reference to '_photos_filter_tips'
- photos_filter_info in ./
photos.module - Implements hook_filter_info().
File
- ./
photos.module, line 2564 - Implementation of photos.module.
Code
function _photos_filter_tips($filter, $format, $long = FALSE) {
switch ($long) {
case 0:
return t('Insert an image: [photo=image]id=55[/photo], Insert multiple images: [photo=image]id=55,56,57,58[/photo], Insert album: [photo=album]id=10[/photo].');
case 1:
$t = '<h2>' . t('Insert image and album') . '</h2>';
$item[] = t('Insert an image: [photo=image]id=55[/photo].');
$item[] = t('Insert multiple images: [photo=image]id=55,56,57,58,59[/photo].');
$item[] = t('Optional attributes: align, e.g: [photo=image]id=55|align=left[/photo] or [photo=image]id=55,56,57|align=right[/photo].');
$t .= theme('item_list', array(
'items' => $item,
'title' => t('Insert image'),
));
$item = array();
$item[] = t('Insert album: [photo=album]id=10[/photo].The default display album cover. You can change, please configure the "limit" property.');
$item[] = t('Optional attributes: align or limit, e.g: [photo=album]id=10|align=left[/photo] or [photo=album]id=10|align=right|limit=5[/photo].');
$t .= theme('item_list', array(
'items' => $item,
'title' => t('Insert album'),
));
$share_url = l(t('Click to here'), 'photos/share');
$t .= t('This is similar to bbcode, do not seem friendly, You can try visualization interface: !url', array(
'!url' => $share_url,
));
return $t;
}
}