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

how to remove fieldset from user account edit form?

I'm working on a module to allow users to choose their user picture from the a views gallery of images that they've uploaded.

I can't figure out how to remove the picture fieldset from the user account edit form. I assume form_alter is the right way to go, but can't seem to get it to work.

I have:

function users_picture_form_alter($form_id, &$form) {
  if ($form_id == 'user_edit') {
   unset($form['picture']);
  }
}

I've also tried:

Gallery2

Dear Drupal Team ;

I am a new user for Drupal and i have installed version 4.7 and i am ejoying it but i am facing a problem in embedding Gallery2 in my Drupal
my Gallery2 version is 2.1 and it working great alone and even Drupal is working fine alone
and here you are the error

Votes on Views Page

Using the Vote Up/Down and Views modules:

Added the field 'Individual vote value' to my custom view page- this removed all nodes without a vote. I'd like these nodes to still be listed, but with a value of 0.

Option 1: when a node is added it's given a default vote value of 0
Option 2: the Views page lists nodes without a vote as 0

I've tried many different variations in the views settings- ie filters, fields, arguments, etc... but so far i haven't found the solution. Am i missing an easy fix, or is this something that needs to be coded?

thanks

Please help me customize this module a bit. (auto node title)

Hi,

I am trying to build a Drupal site where the node title is computed by adding some existing CCK fields, and it's really a big pain.

I have found the auto node title module, wich already does half of what I need. This code hides the title form fields from the node types I choose, and it changes the node title to the content type.
Instead of the content type, I want the title to be 3 custom fields, I already managed displaying this title in the a views page with this code:

<h2 class="review"><a href="<?php print $url; ?>"><?php  print $field_year_value;?> <?php print $term_node_1_name; ?> <?php print $field_model_designation_value; ?></a></h2>

However, using the method only gives me more problems and inconsistencies. So hopefully I can change the module code below to use my CCK fields rather then content type for a title.
I have some experience messing around with php code, but the code below that generates $title is beyond me, I don't get what's going on with the % signs.

If someone could point me into the right direction or help me change this code it would be greatly appreciated!
JR

<?php
// $Id: auto_nodetitle.module,v 1.3 2006/08/29 12:24:11 fago Exp $

/**
* @file
* Allows hiding of the node title field and automatic title creation
*/

/**
* Implementation of hook_help().
*/
function auto_nodetitle_help($section) {

anyone working on search buttons on forms

i want to create a module wherein there is a form in which if u type a name and press "SEARCH" button the whole record corresponding to that name has to be displayed.

How to create "SEARCH " and "RESET "button?

Capturing flexinode image upload

Hi,

I have a flexinode that is image based. When a user uploads an image I want to hook into the upload method and capture certain information first and depending on that info change the destination location for the image.

Anyone have any suitable ideas for hooking into this?

Thanks
Bernard

Pages

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