This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Questions on module development principles

Regarding developing a module - either core or contributed - I have the following questions:
- Are clean-code guidelines followed as a standard, ie manual checking, or is clean-code.pl used?
- Is it required to run simpletest against any new module or update? If so, how is that checked?
- Are there tools to ensure that the basic PHP security guidelines are adhered to? If so, which ones?

organize my content

Hello,

I've made a couple of photoalbums, project 1 until n.
What I'm trying to achieve is to have a link to a project page with all the thumbnails of the projects on it.

I don't know how to start with this. Taxanomy? Create a new block? Module? Node?

Thanks in advance.

Displaying variable value

I've been messing with the AcidFree module lately, and it seems to work pretty well, but there's one bug that hasn't been addressed by the maintainer, so I'm trying to figure it out. There is supposed to be a "My Acidfree Albums" link that is displayed if the "get a per-user album" access is granted, but it is not displaying for some reason.

The following code exists in acidfree_menu:

        if (variable_get('acidfree_per_user_albums', false)) {
            $items[] = array('path' => 'user/acidfree', 'title' => t('My Acidfree Albums'),
                    'access' => user_access('get a per-user album'),
                    'callback' => 'acidfree_page',
                    'type' => MENU_SUGGESTED_ITEM,
                );
        }

It looks okay to me (from what I know of hook_menu()), but it isn't working. So, I want to see the value that is in $items['access'], so I try a print statement like this:


if (variable_get('acidfree_per_user_albums', false)) {
$items[] = array('path' => 'user/acidfree', 'title' => t('My Acidfree Albums'),
'access' => user_access('get a per-user album'),
'callback' => 'acidfree_page',
'type' => MENU_SUGGESTED_ITEM,
);
$temp = $items['access'];

Limiting number of page creations for authenticated users

Hi, I tried searching but I haven't come across something I want;

Basically, is there any module that allows an authenticated user to create a page, but is limited to x number of creations before no longer able to create more pages but only edit them?

Upload module: upload/js permissions issue

In order to upload a file with the Drupal upload.module, you need the "upload files" and "view uploaded files" permissions.

My module, OG User Roles (http://www.drupal.org/project/og_user_roles) assigns roles to users based upon the group(s) they are in. So, if a user has the "upload files" permission for Group A, he should be able to upload a file in Group A.

What is now happening is that:

Creating playlists in drupal 5.1

hello,
i've succesfully installed the drupal audio module, but now i would like to create a playlist, which contains all of my uploaded audio files. any ideas? i've already tried to create flash-players in blocks or other pages, but this doesn't work. i'm lost...
thank's for help,
red

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions