Use template in custom callback

I am creating a module which accesses an old database, so I need to do some custom coding. I only need it for viewing data: https://github.com/vih/vih.dk-features/blob/master/vih_course_short/vih_...

I wanted to avoid having to write HTML code directly in the callback functions. How do I use a template (for instance a template with a table for the list)?

Six or Seven

If you were starting on a new site today with the intention of going live in 4 to 6 weeks would you build is Drupal 6 or 7?

How do I allow access to my custom module to "anonymous user"

Hi,
I am brand new to Drupal and have been having a heck of time wading through the docs trying to find examples and tutorials.

As difficult as it has been, I have managed to create my custom module and it works - as long as I am logged in. I want my module to display it's stuff on the front page (or any page I want) to any user - logged in or not (anonymous user).

I can see my_custom_module listed on the Modules page and I can enable it. I see the "help" link, but no "permissions" link. How do I activate that permissions link, so I can tell Drupal to let anonymous user to be able to "load" this module (i.e. access http://www.example.com/my_custom_module). Currently I get "Access Denied" if I am not logged in.

I have a my_custom_module_perm() function that looks like this (D7 ?):

  return array(
    'administer my_custom_module' => array(
      'title' => t('Administer my_custom_module'), 
      'description' => t('Perform administration tasks for my_custom_module.'),
    ),
    'access my_custom_module' => array(
      'title' => t('Access my_custom_module'), 
      'description' => t('Access to my_custom_module.'),
    ),
  );

(Is D6 supposed to look like this: return array('access my_custom_module', 'administer my_custom_module'); ?)

Also, D7 hook seems to be _permission() instead of _perm() in D6. Is that correct?

Entity - how to

Hi.
Im trying to learn the new Drupal 7 API and Ive found that Entity API or Field API to be accurate is insufficient. I wasnt able to find(enough) information about what functions are necessary to create a new entity, whats depending on what, what are the relations between functions and whats the workflow. The functions Ive found have missing and insufficiently described array values. Plus the new OOP way of doing things in D7 doesnt have any step-by-step from D6 to D7.

Working with flash in Drupal 7

How do I easily embed flash on a page in Drupal 7? Are there any modules available for that?

I need to build http://vih.dk/faciliteter in Drupal 7.

Development of custom content types

Hi

I'm evaluating Drupal as an application development platform, and i trying to figure it out how my application can be developed in Drupal.

So this is my evaluation scenario:

I have a content that my users will create, that content will be available to is owner only, unless the user share it with another user, group or make it public. That content will be organized in "virtual" folders created by the user. On the other hand that content will be classified with tags, those tags can already exist, or being created by the user.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x