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

cannot redeclare function

Upon enabling a new module, I am getting this error message:

Fatal error: Cannot redeclare _hilite_get_query_terms() (previously declared in /home/choirgee/public_html/modules/hilite/hilite.module:65) in /home/choirgee/public_html/modules/hilite/hilite.module on line 65

The only place this function appears in my drupal installation is in this module (obviously) at:

line 65

Finding what user is accessing a page?

Hi everyone,

I need to query the DB for a field in the profile_values table - but im off to a very bad start :)

How do i find the users uid (or any other identifying factor) - I mean the user how is looking at the page,...

I can see a session id, and i can even see a user->uid but this does not work:

print_r($user)

So, how do i access the currnet users details?

Many thanks

attachments to comments

I badly want attachments to be added to comments can anybody help me out with that...
Regards,
A.K.Karthikeyan

Is the album/folksonomy/image suppose to work with cvs?

I'm trying to use the walkah's new image module alongside the album module. I installed folksonomy and the rest in a clean install of drupal CVS. However, I get the error

DOC Type and xml info does not appear on first line of page

My website at http://www.my-kart.org/web/ seems to parse the page templates and adds a few blank lines which renders an error in the xml feed.

I know I am not providing much info because I do not know what really is the info to provide.

I am running a standard Drupal 4.5 with a number of the distributed modules installed. I do not what is causing the additional blank lines inserted in the page source.

Any general thoughts as to what typically would cause these additional lines to be inserted?

Is there a need for a block_access_by_role module ?

I'm quite convinced that there is the need to setup the visualization of blocks based upon the role. I need to show or not some blocks on a per-role basis. I would like to implement it, but it needs a new block_access table (similar to the node_access one). It should have to be moved into CVS and not be a simple module, I guess...

Pages

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