currently the user cannot supply their own defaults for image_filter, such as hspace and vspace or nolink. I think this is important and should be implemented in the admin interface (to be saved into variable table in drupal). that way, I can use [image:34] in my site pages and make use of defaults I've set in the admin interface!

I'll probably hack this in myself and post it back to this feature request! :)

CommentFileSizeAuthor
#2 image_filter_1.module11.16 KBstarmonkey

Comments

starmonkey’s picture

note that I know you can use the theme functions to override the image tag, like so:

/**
 * SM stolen from image_filter.module to add default (h/v)space of 10
 * Theme function to render image in a node.
 * Displays a thumbnail with a link to the image.
 */
function yourthemename_image_inline_img($img) {
	$img->hspace = $img->hspace ? $img->hspace : 10;
	$img->vspace = $img->vspace ? $img->vspace : 10;
	return theme_image_inline_img($img); // just render normally using the module's html
}

but I think that's not really enough for 'ease of use' - I think admin/settings is a good place to have defaults, rather than this theme hack!

starmonkey’s picture

StatusFileSize
new11.16 KB

ok, here's my current partially tested version for your viewing pleasure - small and easy changes to 2 functions. changes commented with // SM

raintonr’s picture

Status: Active » Closed (won't fix)

Very old request. Users should be doing this sort of thing in CSS anyhow.