Skip to main content
used the wrong tool, and cleaned up the result
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

how to How do I add a form to the block in drupal 7?

iI want to add a configuration form for a block.the The form's style is as belowingthe following:

one year (label)            input text box value    eg:$10     
two years            input text box value     
three years          input text box   
500 accounts         input text box   
1500 accounts        input text box   
2500 accounts       input text box   
image:              can upload an image

    one year (label)    input text box value    eg:$10     
    two years           input text box value     
    three years         input text box   
    500 accounts        input text box   
    1500 accounts       input text box   
    2500 accounts       input text box   
    image:              can upload an image

howHow do iI do it? iI should write a module to get that.

1, howHow do iI design the table, which is used to store the input box value and image value.eg: the table is example. how to
How do I design the fields? thank you.

2,which Which hook i should I use?

how to add a form to the block in drupal 7?

i want to add a configuration form for a block.the form's style is as belowing

one year (label)            input text box value    eg:$10     
two years            input text box value     
three years          input text box   
500 accounts         input text box   
1500 accounts        input text box   
2500 accounts       input text box   
image:              can upload an image

how do i do? i should write a module to get that.

1, how do i design the table, which used to store the input box value and image value.eg: the table is example. how to design the fields? thank you.

2,which hook i should use?

How do I add a form to the block?

I want to add a configuration form for a block. The form's style is the following:


    one year (label)    input text box value    eg:$10     
    two years           input text box value     
    three years         input text box   
    500 accounts        input text box   
    1500 accounts       input text box   
    2500 accounts       input text box   
    image:              can upload an image

How do I do it? I should write a module to get that.

How do I design the table, which is used to store the input box value and image value.
How do I design the fields? Which hook should I use?

Source Link
enjoylife
  • 3.8k
  • 7
  • 47
  • 73

how to add a form to the block in drupal 7?

i want to add a configuration form for a block.the form's style is as belowing

one year (label)            input text box value    eg:$10     
two years            input text box value     
three years          input text box   
500 accounts         input text box   
1500 accounts        input text box   
2500 accounts       input text box   
image:              can upload an image

how do i do? i should write a module to get that.

1, how do i design the table, which used to store the input box value and image value.eg: the table is example. how to design the fields? thank you.

2,which hook i should use?