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

Open,read and write into a text file using drupal

Open,read and write into a text file using drupal

I am trying to write some informations into a file using drupal in a module pls help me

Drupal CVS and project licence

Is the drupal CVS only for Open Source Modules?

I have developed quite a collection of Drupal modules. All collected together on local CVS server.

Most of these projects I cant release under a open source licence because it would put the company that paid for the module development at a disatvantage because then their competition could download the module and see exactly how their "System" for the company works.

I'm basicaly in a dilema here because most of the contract work involved with this is my bread and butter.

Alter Content Search Results

At the moment I am writing a module which should allow you to search inside documents attached to nodes. When you search and one of the keywords is found in the document I want the results to show the node and under the teaser a link to the attachement.

This is the problem, I can't find a way to set the Attachment: 'File' under the small teaser. This is because I can't get my hands on the $item array.

When using your own hook_search you can easily change the data by using hook_search_item($item). However to do this with the node system I just can't find a way except for in the template system.

-The hook_nodeapi(&$node, 'search result') lets you add output, however you can't put it between the teaser and the links. So after this failed I thought lets make a wrapper for node_search with my own module_search so we can combine the search results. However I am not able to not let node_search invoke.

- Another way would be to let node not register as Content and just make it invisible. This way you could make your own search 'Content Search'.

However is still think the best way would be to have a change in the core:

$extra = node_invoke_nodeapi($node, 'search result');
$results[] = array('link' => url('node/'. $item->sid, NULL, NULL, TRUE),
'type' => node_get_types('name', $node),

primary links access

Hi

i have couple of primary links namely - 'log out' & 'my groups' which i want to appear only if an authenticated user signs in. Right now they appear on the top all the time even when no user has signed in.how do i do this?

Thanks

Abhishek

node_save fails to recognise immidiate alterations to the node

Hey all,

In a custom module of mine, I have 2 methods which loads a CCK node and alters some of the content. The issue is that only the changes from the last executed node_save is recorded in the database. The 1st save operation is always ignored! Am I doing something wrong here?

Example code:

Node mover

Hi to all! :)
I found very interesting module Comment mover which can move comments to another node
I need advanced version of this feature - move nodes from one blog to another
What can you advice?

Pages

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