[development] when we run out of characters

Gerhard Killesreiter gerhard at killesreiter.de
Tue May 16 19:13:23 UTC 2006


Karoly Negyesi wrote:
> Hi!
>
> We have a namespace problem. As PHP identifiers can have only letters, 
> numbers and underscores we are using underscores for the hook 
> identifier, ie. we have a hook_menu etc.
>
> On the other hand, when a module is best described with more than one 
> word, the words are separated by underscores. This can lead to 
> clashes, like foo.module defines a function called foo_bar_that and 
> when foo_bar.module would like to implement the newly introduced 
> hook_that.... then we have a problem. This already means that if you 
> have a foo.module then you are better not using any function that's 
> called foo_X_hookname.

I don't think this is a real problem. The number of hooks isn't all that 
big so you can easily work around it.

This is the kind of API change even I don't need.

Cheers,
    Gerhard


More information about the development mailing list