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

Am I tripping?

I thought when I edit a node I can choose my custom menu in the navigation window. Did something happen to my drupal or is it a bug?

Now when i edit a page it saves it into the navigation window without giving me the choice of my custom menu and I have to go through the admin-menu to edit the changed page it into my custom menu. Is this possible?

T

Video module, change tab text

How or where can I altert the text in tabs? For ecample to change from the "Play" tab to "Play Trailer" tab.
Also is it somehow possible to hide tabs on a regular page?

Any hints?

Tmas

Can anyone explain the drupal file management system?

I've seen the file upload system api info here: http://api.drupal.org/api/4.7/group/file

But it does not really explain how the whole system works.
I wrote this module: http://drupal.org/project/fileshare

Help needed | Php snippet

dear all,
i would like to build a php snippet able to interact with smsgateway.module; the goal is to have a submit button(or link) to let the function smsgateway_sendmessage run, but i'm actually a php beginner and i don't know how to get it works. I've tried to "invent" something, but still get problems.
it would be great if someone already dealed with a similar problem and/or could help me getting the right code.

many many many thanks in advance.

That's what i wrote down:

<?php 
global $user;
profile_load_profile($user->uid);  
$destination_number=($user->profile_cel); //i call back the mobile number from user profile
$message_body=($user->name) . ", text text text. -- staff.mysite.com "; //i define a message body
//and then try to build the form ?>
<form name="sms" method="post" action="<?php smsgateway_sendmessage( $destination_number, $message_body) ;?>">
To get your sms just click here!<br/>
<input name="set" type="submit" value="submit">
</form>

as you can see, even if it is a very simple snippet i get problems... :(
i guess i should insert the function in a separate php file because i cannot embed it in action="" attribute... but it would be "outside drupal environment" and functions would be undefined. (i've tried it).
As it appears, the script sends sms... but it happens every time the page is laoded... even if the submit button isn't clicked ever.

Problem understanding the 4.7 Form API?

I've been trying for a few hours now, and I've done a bunch of searching, and I'm really not sure what it is I'm doing wrong.

I used this code:


function drumath_settings() {
$form['Grid Color'] = array(
'#type' => 'textfield',
'#title' => t('Default color'),
'#size' => 12,
'#default_value' => '#d6d6d6',
'#validate' => array('is_valid_hex_color' => array('Grid Color')),
'#description' => t('Choose the color of the graph grid.'),
);
$form['Frame Color'] = array(
'#type' => 'textfield',
'#title' => t('Default color'),
'#size' => 12,
'#default_value' => '#eeeeee',
'#validate' => array('is_valid_hex_color' => array('Frame Color')),
'#description' => t('Choose the color of the graph frame.'),
);
$form['Canvas Color'] = array(
'#type' => 'textfield',
'#title' => t('Default color'),
'#size' => 12,
'#default_value' => '#ffffff',
'#validate' => array('is_valid_hex_color' => array('Canvas Color')),
'#description' => t('Choose the color of the graph canvas.'),
);
$form['Border Color'] = array(
'#type' => 'textfield',
'#title' => t('Default color'),
'#size' => 12,
'#default_value' => '#000000',
'#validate' => array('is_valid_hex_color' => array('Border Color')),
'#description' => t('Choose the color of the graph border.'),
);
$form['Scale Color'] = array(

altertype for Drupal 4.7

The altertype module (hosted at http://www.settingtheworldtorights.com/node/417) allows me to change the type of a node. The current version is for Drupal 4.6. Has anyone upgraded it to support Drupal 4.7?

Pages

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