Programmatically adding content to block

Hi,

I am wanting to programmatically add content to a custom block from a form submit handler. I have been able to do this before but for some reason I cant get this to work and Im not sure what Im doing wrong..

within the form submit handler I am trying to add the content like this:


function module_form_submit($form, &$form_state)   {

$block = array();
$block['content'] = '<h3>test</h3>';

} 

The block has a template file in the module directory called

Facebook Share Link Displaying Wrong Picture

First and foremost, I'm new to Drupal. A developer set up my Drupal platform to manage 3 different websites within my one platform.

I'm having an issue with links being shared on Facebook, and the pic that Facebooks picks up from the coding is incorrect. Is there a way for me to set a default picture for each of the sites within my Drupal platform? And how would I easily do this?

How to display a gallery of profiles

Hi all,

I'm using module Profile2 to manage profiles in my site and I'd like to have a view listing all profiles, each of them represented by the profile picture and the user name, with a link to the full profile.
I'm new to Drupal and I've searched around for some documentation on how to achieve this but I couldn't find anything really helpful. Could anyone give me so guidelines on how to achieve this?

Many thanks for your help.
Simon

Enabling modules in D7x

Under my list of modules, Fbconnect and many other modules are disabled. How can I enable them? For a very few, the libraries are missing.

Where is the best way to customize themes?

Regards!

I am new to drupal theming, but I already learnt a lot about this topics.
I have two web sites made in classic xtml & css, but my boss request from me to migrate them in drupal.

I am a little confused what to do, so I need your suggestions what is the best way to do this job.

I already slice psd, coded it...

Could I in general, use code of my web sites in drupal?
(In .info file of theme I could add my style.css, but, themes have already its css which overlap with my css, so I dont know what to do!)

Recommend me some free themes for local tv station

Hi, I started to learning drupal, and I have a project for tv station which request from me to make them web site in drupal.

I know good xhtml and css. I dont get payment for that projects, it is just volunteer work. So I want to prove my skills, but I am new in drupal.

Could you recommend me, what is the best solution for me for this situation?

Regards!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x