Hi
I am new to drupal. I have been building web sites using html, css, javascript, and ajax for over 10 years. I have read the book "Pro drupal 7" development very carefully but can not figure how to implement the following
When a user logs in I need to generate the following
<img src="http://152.27.120.126:8080/graphs/usageDataGraphics.bdc?userEmailAddress=xx@yyy.com&graphName=Usage&timeUnit=YEAR&widthPx=600&heightPx=450" />
and display it on the user home page. This is fairly easy to do with ajax and dhtml.
I thought it would be a good idea to create a content type so that the admin could create a node/widget and configure the parts of the URL for example the width, height, ...
my naive assumption is that I should implement a content type, this would allow the admin to configure the graph parameters, then add the block hooks so that they could position the newly created content.
I implemented the hook_install, hook_node_info() and hook_form() am able to create nodes of my type "aed"
I thought the node_view() hook would be where I generated the img tag. Bellow is my sample code. It does not work correctly, the generated html is in the wrong place on the page
<?php
function aed_view($node, $view_mode) {
switch($view_mode) {
case 'full':
_aed_load_graph_impl($node);
break;
}