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

Tinymce quick node/page link

Does anyone know of a hack to quickly include a link - perhaps via a drop down menu in the 'link' dialog or a separate button within the editor - to pages already created within a Drupal site which avoids having to copy/paste the url all the time?

Book review module: adding new category for classification

Newbie Drupal user, here. I have been trying to find a way to add a "reading level" category to the existing book review module, so that users can sort reviews by reading level.

To the .install document, I added the following line to the "Create database" statement:

readinglevel varchar(25) NOT NULL default ' ',

In the .module document, I have tried to root out all of the changes and add the proper variables (too many areas of the document to post here, I think).

Problem on apply default values to a select

Hi, i´m developing a module like node reference but different. My problem is that I get an array with de values, but when using that values with default_values on the select, it doesn´t work. I try EVERITHING.
Could anyone get an idea, of wht'a happend ? Thank´s a lot and excuse for the english.


<?php
function miartrel_menu($may_cache) {
$items = array();
if ($may_cache) {
// ...
} else {
$items[] = array(
'path' => 'node/' .arg(1). '/miartrel',
'title' => t('MiArtRel'),
'callback' => 'miartrel_nodeapi',
'callback arguments' => array($node),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}

function miartrel_nodeapi(&$node) {
$imprimir .= drupal_get_form('miartrel_form', $node);
return $imprimir;
}
//////////////////////////////////////////
/**
* Defines a form.
*/
function traerArtVinc ($node) {
$opciones = db_query("SELECT field_artculos_vinculados_nid FROM {content_field_artculos_vinculados} WHERE nid = %d", $node->nid);
$z = 0;
while ($op = db_fetch_object($opciones)) {
$opciones_default[$z] = (int) $op->field_artculos_vinculados_nid;
$z++;
}
return $opciones_default;
}

function miartrel_form($node) {
$opciones = db_query("SELECT field_artculos_vinculados_nid FROM {content_field_artculos_vinculados} WHERE nid = %d", $node->nid);
$z = 0;

Event module returning errors

I recently installed the event module and now, whenever I go to >Administer>site building>modules, I get the following warning in a red textbox:

warning: opendir(sites/all/modules/event/contrib/event_all_day) [function.opendir]: failed to open dir: Permission denied in /home/milesand/public_html/milestravisnet/includes/file.inc on line 641.
warning: opendir(sites/all/modules/event/contrib/event_views) [function.opendir]: failed to open dir: Permission denied in /home/milesand/public_html/milestravisnet/includes/file.inc on line 641.

Any program that can check for "contributed modules" updates? I got way too many contrib modules to keep an eye on

Basically that's the question. I use updates.php to check for updated modules but it seems like it misses a lot of the contrib modules. If I were to manually check the updates it would take forever to get them done.

Is there anything that could do that automatically? You know, maybe a module or software? Thanks.

How do I redirect to different module with object reference

Hi All,

I am have developed a module to integrade payment gateway with ecommerce module.
The admin Panel works fine. I can Add, Edit, and Delete Merchant details from Admin Panel.
I want to link my payment module with the ecommerce module. I have tried to redirect in cart.module.

Pages

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