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

anyone want to take over userreview project?

I have new assignment which precludes much Drupal development for a while. If anyone is interested in taking over the userreview module, please let me know.
Thanks
dado

how do I capture a number with 2 decimal places?

this number is defined as decimal(10,2) in mysql. it is declared like this in the form

   $form['cpm'] = array(
     '#type'          => 'textfield',
     '#title'         => t('Cost per month'),
     '#default_value' => $node->cpm,
     '#maxlength'     => 6,
     '#required'      => FALSE,
     '#size'          => 6,
     '#weight'        => 3
   );

in validate, i have

Import Export Module Error

I've just installed the Import/Export module nad when I select it from the menu I get the following error:

Fatal error: Call to undefined function: form_select() in /home/southee/public_html/Drupal/modules/import_export/import_export.module on line 67

Any ideas what is causing this?

Cheers

Mark

Theming a table view - howto

Hi All,

I'm quite new to drupal(around 3 weeks now and loving every minute of it:-) ) and have successfully themed a node to how I want. I am now using a view(table type) on taxonomy and would like to overide its default theming. I have read all that I can find on the theming page http://drupal.org/node/42597

All I'm after is access to the fields on each row. So when I get

StockID : Price : image: description: type :
222 : 45 : 2.gif : old : small
443 : 22 : 5.gif : newish : large

I would like to be able to space the fields out, add in a $ sign in front of the price. Maybe apply some css to it.

I have defined an overide function in template.php and can remove the output completely by commenting out the cell[data] field.

function phptemplate_views_view_table_taxonomy_term($view, $nodes, $type) {

 	$fields = _views_get_fields();



	foreach ($nodes as $node) {

		$row = array();

		foreach ($view->field as $field) {

			$cell['data'] = views_theme_field('views_handle_field', $field['queryname'], $fields, $field, $node,$view);

			$cell['class'] = "view-field view-field-$field[queryname]";

			$row[] = $cell;

		}

	$rows[] = $row;

	}

return theme('table', $view->table_header, $rows);

}

From here I'm not sure exactly how to overide the the theming of the fields and am guessing I need to do something with this cell[data] field. I'm pretty sure it will be something simple but it is not obvious to me.

are that any guidelines for writing new modules to enhance the existing modules?

For example, logintoboggan. It enhances the login features without changing user module. It just hooks up with the login forum perfectly. How does it do it? Are there any guidelines for that? Thanks.

Bulk container add?

Looking for way to bulk add (not edit) containers (containers from Category module). Looking through the Container module code, I found the following implementation of hook_update().

category_update($node, $type = NULL)

Seems this could be called from within a loop. However, I'm puzzled by needing to supply it a node; if I'm creating a container anew, it would seem there isn't a node yet . . . unless somehow adding a container automatically creates a node first. If so, I'm not sure where to look for how that happens. Any advice would be greatly appreciated.

Pages

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