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

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.

Views access control

I want to limit a view access and its menu for a Role.
For exemple i want to see nodes that are in a particular state.
State field is only visible for a Moderator role.

I created my view and check my Moderator role in Access bloc, but when i log out i can see the menu link and the view content.

Is there something that i miss ?

Seek module have role same as Issue page of this site

Hello,

I am seeking for the module has function as Issue page of this site " http://drupal.org/project/issues/ "
This modules is really necessary for me. I would to deploy it on my site.

Please let me know which modules should i install to active all functions as this site " http://drupal.org/project/issues/ " on drupal website.
Thank you very much.

help please..about button

I have this form:

----------- ---------
|select box | | button |
----------- ---------

if i select a choice on my select box and click the button, how can i make a display details that corresponds to the choice i selected?

Just like how the search button works....

help me please.....i'm a drupal newbie and i want to explore more...

thanx...........

best regards,

aries30_mel

Pages

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