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

Which views hook to add a field-specifc WHERE?

I have a 'custom' CCK fieldtype module that basically links up a nodereference field with a hidden taxonomy term reference. This allows me to keep a different reference for each term in my taxonomy.

I'm trying to build a view that displays this field. The view has terms as a filter (and as an argument in other cases). Currently, all the information in the field is displayed, but I only want to display the relevant info that is linked to the term that is the current $arg or filter for the view.

Problems with forms and previews

Hi all,

I'm hoping someone can point me in the right direction here - i think I either need to learn about a new area of Drupal's functionality, or have simply designed my module badly.

My problem stems from my node type which consists of a table 'node_metadata' which contains all my basic extra node info, which then has a one to many relationship with 'node_links'. 'node_links' consists of columns lid (link id), nid (by which it refers the parent node), then a series of other columns such as url, comment, etc.

Currently hook_load works by running one query to create the basic node properties out of the node's single entry in 'node_metadata', then a second query will search in 'node_links' for all rows with the appropriate nid. Those rows are looped through so I end up with the node object $node->links containing a series of hashes where the key is the link id and the values is a hash of the row's data, e.g. $node->links['99']['url'] = 'http://www.drupal.org'.

hook_view now works fine, however my problem comes when I try to create a node and the preview can't see the information.

Simple Module Help

I have no knowledge of PHP or MySQL. However I need a simple module deleoped to be put into Drupal. It would be a certification check.

Every individual would be assigned a Registration Code/Number (like a driver's license number). Their name would be associated with it as well as a level.

A user would be able to search for that person by name or registration code and the page would give 1 of 3 responses:

1) Registered
2) Suspended
3) Not Certified

[Moved from Performance forum to Module development forum -- kbahey]

Some JS questions....

Perhaps not the right forum for this topic... if its not, I apologize, but would certainly appreciate any direction!

I have a list of characters maintained in a separate table - a guild roster for a Warcraft guild. I wanted to make a field auto-complete from that table... I had a look at the user module (and user_autocomplete) and adapted it for this module. This part works great .. as you type in a name, it auto-completes, just as it should.. pretty straightforward.

Any module that can do this?

Hey again :D

I am starting up a website about website development and themeing. On my site I want to "Feature" a user and image for each month, or week, whatever; on the front page of the site when I see fit. Is there a way to do this? Is there a pre-built module that can do this?

Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/p

Yup, another civicrm user with problems. Newbie here.

civicrm-1.7.beta.9184-drupal-php5.tar.gz
Drupal 5.1

Using Siteground as host, see
http://andrewbecker.net/phpInfo.php

Error:
Fatal error: civicrm_initialize() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/andrewbe/public_html/modules/civicrm/drupal/civicrm.module on line 224

Here's my config file:

<?php
define( 'ENABLE_COMPONENTS', 'CiviContribute,CiviMember' );
define( 'CIVICRM_UF' , 'Drupal' );
define( 'CIVICRM_UF_VERSION' , '5.1' );
define( 'CIVICRM_UF_URLVAR' , 'q' );
define( 'CIVICRM_UF_DSN' , 'mysql://andrewbe_civicrm:PASSWORD@localhost/andrewbe_civicrm?new_link=true' );
define( 'CIVICRM_UF_USERSTABLENAME', 'users' );
global $civicrm_root;
$civicrm_root = '/home/andrewbe/public_html/modules/civicrm/drupal/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/andrewbe/public_html/drupal/files/civicrm/templates_c/' );
define( 'CIVICRM_UPLOADDIR' , '/home/andrewbe/public_html/drupal/files/civicrm/upload/' );
define( 'CIVICRM_IMAGE_UPLOADDIR' , '/home/andrewbe/public_html/drupal/files/civicrm/persist/');
define( 'CIVICRM_CUSTOM_FILE_UPLOADDIR' , '/home/andrewbe/public_html/drupal/files/civicrm/crm_docs/' );

Pages

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