drupal 7 - form api

18
Form API és ami mögötte van Tatár Balázs János Crew4U Kft. – vezető fejlesztő

Upload: balazs-tatar

Post on 19-Jun-2015

907 views

Category:

Technology


1 download

DESCRIPTION

2011.11.26. Drupal Hétvége, Tatár Balázs János - Form API és ami mögötte van...

TRANSCRIPT

Page 1: Drupal 7 - Form API

Form API és ami mögötte van

Tatár Balázs JánosCrew4U Kft. – vezető fejlesztő

Page 2: Drupal 7 - Form API

Miért van erre szükségem?

display:none;

Page 3: Drupal 7 - Form API

Túrjuk fel a modult?

Page 4: Drupal 7 - Form API

Drupal alapon vagyunk!

Page 5: Drupal 7 - Form API

Szóljunk bele a Contact-ba!

hook_form_alter

Page 6: Drupal 7 - Form API

Visszaigazolás kérése formmal

confirm_form

Page 7: Drupal 7 - Form API

A kontroll nálad van!

checkbox

checkboxes

date

fieldset

file

machine_name

managed_file

password

password_confirm

radio

radios

select tableselect

text_format

textarea

textfield

vertical_tabs

weight

Page 8: Drupal 7 - Form API

Attribútumok erdejében…#access

#after_build

#ahah

#attributes

#autocomplete_path

#collapsed

#collapsible

#cols

#default_value

#delta

#description

#disable

#element_validate

#field_prefix

#field_suffix

#maxlength

#multiple

#options #parents

#post_render

#prefix

#pre_render

#process

#required

#resizable

#return_value

#rows

#size

#suffix#theme

#title

#tree

#weight

#ajax

#attached

#array_parents

#default_tab

#empty#empty_option

#empty_value

#group

#header

#js_select

#states

#theme_wrappers#title_display

#value_display

Page 9: Drupal 7 - Form API

Speciális elemek?!

actions

button

container

image_button

submit

form

hidden

token

markup

itemvalue

Page 10: Drupal 7 - Form API

Speciális cuccok speckó attribjai…

#ahah#ajax

#limit_validation_errors

#markup

#redirect

#theme_wrappers

#title_display

Page 11: Drupal 7 - Form API

Milyen függvényekkel micsodát?

_form($form_state)

_validate($form, &$form_state)

_submit($form, &$form_state)

Page 12: Drupal 7 - Form API

Fieldsetekkel így is lehet…

Page 13: Drupal 7 - Form API

Amszterdami kirándulás?

Page 14: Drupal 7 - Form API

Több oldalas papírmunka

Page 15: Drupal 7 - Form API

Elrendezés, dá szééép

by Lullabot

Page 16: Drupal 7 - Form API

Összefoglalva

Időigényes téma

Nagyon jól dokumentált

Komolyabb modulokhoz elengedhetetlen az ismerete

http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html

Page 17: Drupal 7 - Form API

Kérdések?

Page 18: Drupal 7 - Form API

Köszönöm a figyelmet!

Tatár Balázs JánosCrew4u Kft.

[email protected]: @tatarbj