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

Add Dynamic link to Primary Menu

I'm creating a module and need to insert a dynamic menu item into the Primary Menu depending on the context. In this case I need a new link to appear in the Primary Menu if the user is viewing an "office" page. The actual link will be different for each office. How do I "hook" into the menu tree to make a change like this on the fly?

PayPal API module

I was recently wanting to sell products and receive payment via PayPal. After hacking Quickfile and LM PayPal for a while, I realised that neither would really suit my requirements. Instead I tried to write a PayPal API module that works out of the box, but also allows other modules to plug in to it.

Views Confusion

Sorry about the silly question... but I have gone kind of confused in the difference between Views/Themes and Views/Blocks.... can somebody please clear me the difference or point to the resources...

Newbie to Drupa and Views so really confused

HELP!!! how can i store value of my textarea in the database? im using drupal_js

hi everyone.. im creating my own module and im using drupal_js which loads a textarea if 1 is selected in the select box. my problem is i cant store the data in my textarea into my database. how do i solve it?

thanks..

here is my module code:

<?php
// $Id$

/**
* @file
* Provides a "daily report" node type.
*/

/**
* Implementation of hook_node_info().
*/
function dailyreport_node_info() {
return array(
'dailyreport' => array(
'name' => t('Daily Report'), // Required.
'module' => 'dailyreport', // Required.
'description' => t('Submit or view daily reports'), // Required.
'has_title' => TRUE,
'title_label' => t('Module Name')
)
);
}

/**
* Implementation of hook_menu().
*/
function dailyreport_menu($may_cache) {
$items = array();

// Do not cache this menu item during the development of this module.
if (!$may_cache) {
$items[] = array(
'path' => 'node/add/dailyreport',
'title' => t('Daily Report'),
'access' => user_access('submit or view daily reports'),
);
}

return $items;
}

/**
* Implementation of hook_access().
*/
function dailyreport_access($op, $node) {
global $user;

if ($op == 'create') {
return (user_access('submit report'));
}

if ($op == 'update' || $op == 'delete') {

login name vs full name/alias

Is there an easy way (or some module to download) that separates the username login field into two: one used to login, and another that is shown on the site as the username. E.g. log in with five-letter simple-written "arnie", but shown on the site is "Arnold B. von Schwartsbeggar-Kopfenheim". (Without needing to type that long name including correct spelling and capital letters every login.) This also increases security, since people's login names are never shown and thus, like an extra password.

Image Import doesn't import checked images. Returns Blank Page?

My files/images/import directory is in place.
I did a chmod 777 on every file and directory under files including files and I cannot get this image import module to work.

Pages

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