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

button type button in form

I want a button in the form like this (not a submit button but a button type button):

<input class="form-submit" name="op" value="New" type="button">

I use this code:

 $form['New'] = array(
  '#type' => 'button',
  '#value' => t('New'),
  '#weight' => 19,
);

....but I obtain a submit button like this:

Adding location to function theme_event_node_list

I'm trying to modify the display of my event calednar in list form to include the location. My PHP knowledge is very limited, but I'm trying to use "$node->event_location" to call up the location using this line:

  $output .= '<div class="location">'. t('Location') .': '. $node->event_location ."</div>\n";

This brings up "Location :" in the listing, but nothing more. I'm using the event module with flexinode and I'm at a loss as to what string I need to call up to display the location.

Coppermine and Drupal

I know several people have been looking for a module that allows single sign-on for these two apps. Just ran across a post at coppermine.net that has some help:

http://coppermine-gallery.net/forum/index.php?topic=24060.msg110540

Book review needs tweaking

I was reading on this site that someone had made some php changes to the Book Review module, for the following functions:

thumbnailing images on the "teaser" page

aligning the book stats (pages, publisher, ISBN #, all those kinds of data) on the right of the larger image inside the actual review.

I am looking around for this functionality but unfortunately can't find it anywhere. Does anyone know of a patch or update for bookreview that will allow this? Or can someone tell me how to do that in php (I don't really know much php unfortunately)

Thanks!

I've got a rather large relationship module 70% done :)

If anyone wants a look.
You'll find it over here

... following on from last months discussions I still seem to have no CVS account so I gotta go it alone.

remove line break?

How do I output these two form items on the same line? I can't get the automatic line break out.

$form .= form_select('Manager #2', 'mid2', $mid2, $options, NULL, 0, FALSE, FALSE);
$form .= form_select('Manager #3', 'mid3', $mid3, $options, NULL, 0, FALSE, FALSE);

TIA,
Billy

Pages

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