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

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, I don't really understand what you are trying to achieve. Could you please elaborate?

idflorin’s picture

I 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.

sun’s picture

Category: feature » support
Status: Postponed (maintainer needs more info) » Fixed

Well, 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).

idflorin’s picture

Thanks a lot.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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