Module block content

If I create a custom block module, I can set the subject (title) for the block and the content. In my block theme I can then print the subject and the content. But can I also make content an array so I can print individual fields in the block template instead of the contents all at once?

E.g. something like this?
$block['content'] = array('field1' => t('value1'), 'field2' => 'value2')

Blocks with nodes based on term

I am working on a project where I need to show a block for each taxonomy term containing nodes of content type "news". This could be achieved by creating views block, but since I have a taxonomy tree with 15 terms it is a bit strange/unmanagable to define 15 views which filter news nodes based a term id.
Besiedes, the client could add a new term himself, so we would then need to create another views block.

Set default menu item

Hello,
I have been looking around on the Drupal site and forum for quite a while, but I can't seem to find (or understand) how to solve my problem.
I am trying to set the first menu item of my primary menu as "default" so that when I am on a different page (from for example the seconadry menu) the submenu of my "default" menu item in primary links will stay open.
If anyone has a solution, it would be much appreciated :-)

RSS/Atom feed broken in D7, works in D6

I've got an Atom feed that works just fine when I aggregate it in Drupal 6:

http://delaflamme.org/aggregator/sources/19

But it does not work in Drupal 7:

http://differentcomputers.com/aggregator/sources (all the entries are months old, from before the feed was reconfigured. At /aggregator/sources#overlay=admin/config/services/aggregator it says "14 items" never updated. Clicking update there gives the generic error.)

Here is the feed itself: https://joindiaspora.com/public/corby.atom

When I run cron, the admin interface throws a generic Error notification.

The log says:

URI for file upload

Hi everybody

I'd like to upload files in my module directory on my server (because these are cv templates, and i develop a cv management module)
During upload, in the uploading function (file_save_upload()), i have to give an URI as destination, but i don't really understand...
Have i only the choice between the private/puplic or temporary folder??

I there a way to do what i want to do?

An idea?
Thank you

Looking for best shared web hosting

I've been with 1&1 for three years now after a recommendation from a friend. However, I have noticed that now they're so bogged down that I can't even auto-upgrade my WordPress installations or upload photos within the WordPress install. Drupal is even more of a heavy hitter than WordPress, so I know it's time to move to a more robust web host.

I don't have a lot of money so I'm forced to use shared hosting for the time being. What are your recommendations? BlueHost has excellent customer service but they throttle the hell out of even a small 3k visitors/month website.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x