By amira on
hi all,
i tried to create an image which has to be as link ....but i faced a problem which is ..no thing appears ...if any suggestions ..i'll be more than greatful..
$img_path = ("/sites/all/modules/request/edit.png");
$link_text = theme_image("$img_path");
$form['request'][]=array(
'#value' => l($link_text,'http://localhost/drupal?q=request/form&'.'vid/'.$obj->id, array(), drupal_get_destination(), NULL, NULL, FALSE, TRUE),
);
Comments
any suggestions
any suggestions there....!!!!!!!!!!
It looks to me like you're
It looks to me like you're passing l() one too many parameters.
See http://api.drupal.org/api/function/l
thanks grendzy for ur
thanks grendzy for ur concern,
i changed it to :
but still the image doesn't appear.
Hello, I don't understand
Hello,
I don't understand well your code (beginner), but to show an image as a link :
$link = l($img, $path, array('html' => TRUE));
with $img = theme_image($pathImg, $alt = '', $title = '', $attributes = NULL, $getsize = TRUE);
Does it help?
hi sahuni, actually iam a
hi sahuni,
actually iam a newbie in drupal.....:$:$
i tried what u recomended and here is what i did.
and again again it doesn't appear.
normally images show in your
normally images show in your site? .png image?
Your image is really where you think it is?
can you just create a module which shows an image (without link), so you see if problem is in your link or elsewhere.
i tried this $img_path =
i tried this
nothing apears :'(