Closed (fixed)
Project:
Image Assist
Version:
5.x-1.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2008 at 20:05 UTC
Updated:
6 Aug 2008 at 10:55 UTC
I want add a new simple option but I'm new at this and I don't know how.
Around line 351
'#description' => t('If enabled, the body text from the image will be loaded as the caption by default.'),
I added
$form['properties']['img_assist_captation_switch'] = array(
'#type' => 'radios',
'#title' => t('Allow image captation'),
'#default_value' => variable_get('img_assist_captation', 1),
'#options' => array(t('Disabled'), t('Enabled')),
'#description' => t('If enabled, will be no captation inserted.'),
);
and around line 1670
I think it should be a change likeif ($caption)
to something like
if ($caption && $img_assist_captation_switch)
Any Ideas ?
Comments
Comment #1
sunSorry, I don't really understand what you are trying to achieve. Could you please elaborate?
Comment #2
idflorin commentedI don't want the 'span class="caption"' in my body, actually;but I want the alt in title tags to be in their place; I achieve this by commenting the lines 1664 to 1676 from the img_assist.module, and I was thinking to an alternative.
Comment #3
sunWell, theme_img_assist_inline() is a theme function, which you can easily override in your theme (and thus, output an IA-controlled image in any way you like).
Comment #4
idflorin commentedThanks a lot.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.