drupal-fapi Questions

5

Solved

How would I print the results of a form submission on the same page as the form itself? Relevant hook_menu: $items['admin/content/ncbi_subsites/paths'] = array( 'title' => 'Paths', 'descrip...
Methylene asked 28/4, 2010 at 21:36

5

When a user enters his login information and hits submit, i want to check if the user already exists or not. So, i have the following two questions 1. Which hook is needed to be implemented , for t...
Suk asked 10/5, 2010 at 14:32

6

Solved

I am trying to have a button which is not a "submit" type of button, but rather a normal "button" type, using the forms api of drupal 7, but I can't seem to get it. I've tried many things, like se...
Meredeth asked 3/1, 2011 at 13:57

3

Solved

I'm building a form module. One of the early fields is a set of radio buttons. By default the first button is selected. Next I'll have a series of select boxes. One needs to be visible, the others ...
Staphylorrhaphy asked 5/10, 2012 at 19:42

2

Solved

When I create a node I want it to programmatically create some nodes that reference the node just created. I though I would just need to change form_alter submit function for my form to call a cus...
Adularia asked 9/9, 2010 at 8:52

3

Solved

I want to add title="icons/icon_cart.gif" for each of the below options in my select list which is rendered using views. After trying and reading many articles I can't seem to find the way to add ...
Valeriavalerian asked 13/2, 2012 at 13:17

4

Sounds like a simple question. I've added a bit of jQuery magic: $("#edit-save").click(function(event) { $(this).attr("disabled", "true"); }); However, once this is in place, my form submit han...
Gorgon asked 17/12, 2010 at 17:29

4

Solved

I need to apply style and read-only property to an input element of a drupal form. I coded the following: $form['precio'] = array( '#type' => 'textfield', '#title' => t('Precio'), '#defau...
Slaphappy asked 19/12, 2012 at 11:58

1

Solved

I have a web form with name and email fields. when the form is submitted the name and email should store in database and an PDF file should start download. my question is how to override the submi...
Dorettadorette asked 15/5, 2013 at 7:43

5

Solved

Is there any core function to get uid from username in Drupal? Or I should perform a db query? my field is a textfield with '#autocomplete_path' equal to 'user/autocomplete'
Masakomasan asked 4/10, 2010 at 15:6

2

Solved

is it possible to add a simple html link in the label/title of a checkbox? I tried the following code: <?php $form['legal']['#type'] = 'checkbox'; $form['legal']['#required'] = TRUE; $form['leg...
Unwieldy asked 1/11, 2012 at 18:40

3

Solved

For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit handler as $additional_args = array(); $form['#submit'][] = 'my_submit_...
Rapt asked 13/8, 2010 at 7:11

1

I'm making a module to allow users to update single fields on in this case, their user entity. The code below is an example of the method I have initially been using to get it working and test ot...
Porshaport asked 18/2, 2011 at 11:24

5

OK so this is my hook form alter function.It is causing all the registration forms on site to be over written which I do not want as I just want it on this page. function special_registration_f...
Validate asked 14/6, 2010 at 1:22

2

This is the same question of this link: Removing [nid:n] in nodereference autocomplete According with the first answer (Grayside) I've created my own module and activated. Then I create a new con...
Holmun asked 30/4, 2010 at 10:47

2

I am trying to modify some Drupal 6 form code and incorporate some native form validation. Code looks like this, but validation does not work. I never even get into function thisFormName_form_valid...
Muttonchops asked 4/3, 2010 at 2:54

3

Solved

I want to create an input form for registered user, separated from admin's content creation form. Each submission will create multiple node. To illustrate the case, I will use content type Project...
Nonjoinder asked 5/11, 2009 at 20:47
1

© 2022 - 2024 — McMap. All rights reserved.