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

Anyone working on a module that displays CiviCRM contacts in nodes?

I am just curious if anyone is working on this? Right now Drupal doesn't seem to offer this sort of flexibility in dealing with CiviCRM: showing contacts in nodes (at least for someone who is a dunderhead with php). I've been looking over the CiviCRM APIs and have made attempts with code snippets to inject contacts into nodes, and it does work (of course), but there are a lot of variables to worry about: how to include only certain fields and how to display this data in a digestable, user-friendly format.

Vocabularies views in 4.7 version

Will Taxonomy Redirect module have a same function of the Taxonomy Vocabulary module (which runs on version 4.6.*)?

I think the funcionality of Taxonomy Vocabulary module is absolutely necessary, but it isn't an "official" module to 4.6.x. and I don't know if the author is updating your code to 4.7.

Can someone knows about that? Thanks!

Htmlarea won't work with Leaf theme

Hi! I use drupal 4.6 with leaf theme. i installed the htmlarea module and suprised a little bit. With the Gespaa theme the htmlarea works perfect, but it won't work with the Leaf theme. How can it be? Have you a solution or the reason of this problem?

Thanks,
Adam

Ask more personal informations in register module

Hy all!
Can anyone tell me how i can ask more personal informations in register module?
I want to ask more about age, religion, and so on.
If anyone can help me, please tell me!
Thanks!

PDFView, how to use it?

Hi all,
I'm trying to use PDFView module... I see that FPDF is required and I downloaded it but where should I put it?
At the moment I created a "pdfview" folder into "modules" one; in the "pdfview" folder I put "pdfview.module" and folder "fpdf" (containing all FPDF files)

get field names for table

I'm quite new to drupal (and PHP) but already starting to like it a lot!

To learn the internals I started poking around inside the ecomerce module and found this

/**
 * The names of the database columns in the table.
 */
function product_fields($table = 'ec_product') {
  return array('nid', 'sku', 'price', 'is_recurring', 'price_interval', 'price_unit', 'price_cycle', 'auto_charge', 'ptype', 'hide_cart_link');
}

If prefer to make these kind of things automatic. After reading this I put together the following function:

function my_db_get_table_field_names($table) {
  // Druplifed version of solution found at:
  //       http://se2.php.net/manual/en/function.mysql-list-fields.php

  $sql = "SHOW COLUMNS FROM `$table`";
  $field_names = array();
  $result = db_query($sql);

 for($i=0;$i<db_num_rows($result);$i++){
   $row = db_fetch_array($result);
   $name = $row['Field'];
   array_push($field_names, $name);
  }
  
 return $field_names;
}

I've tried to search drupal.org to see if there is something similar already in Drupal but couldn't find anything.

Is this something people would like to have in future versions of database.mysql.inc? If not, what is the best way for me to assemble a library of useful functions - is it a module or a .inc-fi

Pages

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