CVS edit link for marcushenningsen

For the last couple of months I have been digging more and more into module code, been more and more active in the issue queues with patches, and I have also been developing modules for my own projects. I now think it's time to take the next step: Sharing some of my work with others on drupal.org and hopefully having people use and review my work in order to improve and develop it.

I have made a small module to seperate the footer message form from the Site information page, since some clients need to be able to edit the footer without having access to e.g. the name of anonymous visitors. The module provides a page under 'administration' - 'build' with a textarea which makes use of the same variable as the original footer message textarea. The original, however, is unset by the module.

Comments

marcushenningsen’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new6.9 KB

The above described module.

Marcus

wadmiraal’s picture

Hi,

The module works fine, coding standards are respected. This is a very simple module. Only thing I see is that you don't need a "version" inside your .info file. Otherwise, you might want to tidy up those commented lines.

I can see why you made this module. But I think a client can achieve exactly the same thing by creating a custom block and putting it inside the footer. I know, it's a bit more tedious, but is it worth another module ?

avpaderno’s picture

Issue tags: +Module review

Hello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.

But I think a client can achieve exactly the same thing by creating a custom block and putting it inside the footer.

It is possible, but all users who need to change the block should have the permission of administer blocks, which is a little too much for just changing the footer.

avpaderno’s picture

Status: Needs review » Needs work

The license file must not be included, as it is not possible to commit that file.

There are two optimizations that should be done to the code (they are not blockers for the approval of the application, though):

  1.     'access callback' => 'user_access',
    

    That is the default value, and it should not be set.

  2.       unset($form['site_footer']['#type']);
          unset($form['site_footer']['#title']);
          unset($form['site_footer']['#default_value']);
          unset($form['site_footer']['#description']);
    

    It can simply be written as

          unset($form['site_footer']);
    
avpaderno’s picture

Status: Needs work » Closed (won't fix)

There have not been replies in more than a week.

marcushenningsen’s picture

Status: Closed (won't fix) » Needs review
StatusFileSize
new6.81 KB

Thanks for getting back and for the good advice. I was away for a while and didn't see the updates. Is it alright to open this issue again?

I updated the module according to your suggestions.

Marcus

michelle’s picture

Status: Needs review » Fixed

Looks like the suggested changes were made. Account approved. I notice you still have the license.txt in the zip file. Don't forget that you should not commit that to the project as it will be done automatically.

Michelle

Status: Fixed » Closed (fixed)
Issue tags: -Module review

Automatically closed -- issue fixed for 2 weeks with no activity.

avpaderno’s picture

Component: Miscellaneous » new project application
Issue summary: View changes