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

Can someone help me with this PHP statement...

I was trying to create a custom module... I was looking at how other modules where developed and copying ideas.

I came across this PHP statement and I couldn't understand what it really was trying to do...

can someone please help me out... what does this mean?

switch($op ? $op : $action){
case '1':
do this
break;

case '2':
do this
break;
default:
do this
}

What does the "$op ? $op : $action" do?...

Thanks in advance

Help making Line Break Converter use <br/> not <p>...</p> to avoid line breaks?

Hi,

I've just moved from 4.4.2 to 4.6.3. Previously (possibly because I had the BBCode module running) line breaks in my text were auto-converted to BR tags. However, under 4.6.3 the BBCode block doesn't do this so I am using the 'Line Break Converter' in the Input Formats.

My problem is that it uses P tags not BR. This means that when you view the front page there is an automatic line break between the text showing who posted the article, when and the taxonomy terms, and the main body.

Attachments in comments

Do you want file attachments in comments? Need extra comment validation for your custom content types (like captcha support in blog entries)? Want spiffier, niftier capabilities in your drupal site's forums? Drupal's commenting system doesn't support those capabilities yet, but a small patch could remedy that. Coincidentally, just such a patch is available for both 4.6.3 and HEAD. If you're interested in seeing these features happen, please pop over and test the patch. Three 'test modules' are available to exercise the new functionality that the patch exposes:

These modules are rough, but give examples of how the hooks might be used. This post is, indeed, shameless waving-of-arms for attention. I'm hoping that the proposed patch to the comments system can make it into core, but that will take people testing and giving feedback on the module (rather than just saying it's a good idea).

Ripping indexpage.module

Using indexpage.module i can see table with links to needed nodes.
But i didn't want to see a table, i want to see just a list of nodes.

What i must change in this module to get same result?

Call for Developers

Hey Guys,

I'm not entirely sure if I am posting this request in the right forum, but after months and months of failed attempts I'm not entirely sure where to go next. I've been working on a series of design documents to tie the concepts of MySpace.com into a Wiki environment using Drupal as its core. I have worked with local developers, most of which are unfamiliar with Drupal, and have gone through numerous developers on RentACoder with no success.

If anyone has the time and would be interested in working on the project, please let me know.

Creating Modules Tutorial - Not working?

Hi ya,

I've just joined the drupal community & I've started the "creating modules tutorial" - but I'm getting the following error message after I cut and paste the tutorial code into my onthisdate.module :

warning: call_user_func_array(): First argumented is expected to be a valid callback, '_onthisdate_all' was given in /***/site/includes/menu.inc on line 354.

(n.b *** - I've removed the site location above)

Here's the code from the tutorial

Pages

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