Drupal: форма контактов в виде блока

При стандартной установке Друпала, вы можете включить модуль Contact, чтобы создать форму контактов. Этот модуль создает страницу с контактной формой, которую вы можете настроить по своему желанию. Но что делать, если помимо страницу контактов, вам нужно вывести эту форму в блоке?

Есть два варианта.

Можно использовать модуль, который создаст блоки для каждой созданной вами категории формы контактов: http://drupal.org/project/contact_form_blocks

Либо можно программно вызвать форму, создаваемую стандартным модулем!

Д6

<?php
  require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
  print drupal_get_form('contact_mail_page');
?>

Д7

 <?php 
require_once drupal_get_path('module', 'contact') .'/contact.pages.inc'; 
print render(drupal_get_form('contact_site_form')); 
?>

Гениальность и простота этого решения позволяет вам не только создать блок, и выводить его куда вам надо и куда вам хочется, но и вставить форму контактов на нужную вам страницу, не захламляя страницу блоков!

Примеры:

Д7, создан блок, блок выводится на заданной странице: http://paris10.ru/reklama-na-saite

Д6, код вставлен в саму ноду: http://www.uchi.kz/reklama-na-saite

Источник: http://drupal.org/node/236997

Главные темы: 
Теги: 

Комментарии

module_load_include

Адски неудобная форма комментирования!

Спасибо, получилось сгенерить форму обратной связи для мод окна бутстрапа!

This message is posted here using XRumer + XEvil 4.0
XEvil 4.0 is a revolutionary application that can bypass almost any anti-botnet protection.
Captcha Recognition Google (ReCaptcha-1, ReCaptcha-2), Facebook, Yandex, VKontakte, Captcha Com and over 8.4 million other types!
You read this - it means it works! ;)
Details on the official website of XEvil.Net, there is a free demo version.

For just one, many professional job women just like a diamond wedding band they can wear without their gemstone during work time, especially if the diamonds in the engagement ring is quite large. Since few people are able the original item, there will always <a href=http://armandotjyo925blog.pointblog.net/Emerald-Rings-One-Of-The-Most-Po... rings made of stone</a> be a market for replicas of the original diamond engagement rings. With a number of prices charged to them, you don't have for your finances to be exceeded at any point.
This old- but renewed product that is projected as the symbol of the eternal Love is opposed to the old style Diamond engagement Bands and the Gemstone anniversary Bands. Such is the fantasy of gemstones that not simply women, but men also from <a href=http://lukasbpcp924blog.ampedpages.com/The-Easiest-Method-To-Purchase-An... around the </a> <a href=http://miniparty2017k.tinyblogging.com/Gems-Engagement-Rings-Finest-And-... globe wear it. Image of beauty, luxury and glamour is forget about associated with feminism. You can search online and find the best precious stone wedding rings and custom wedding ring used for online involvement.
The jewelry developer in Melbourne offers a fascinating variety of designs that hit the dart to fully capture the interest of men and women in the world. But when men actually go directly to the showrooms to buy engagement rings, they may <a href="http://xanderevkz360blog.blogkoo.com">http://miniparty2017k.tinyblogging... be left baffled. A wedding band was created so the diamond is put in the middle of the ring. Even if you would like to buy a marriage band rather than a ring, this is provided too.
Rings are amidst typically the most popular jewelry men and women wear a good deal. If you're buying diamond wedding band as a wedding anniversary product, put some thought in to the design and the rocks, and specifically for the anniversary year. These band designs are incredibly beautiful and nice, vintage means sheer sophistication, there is absolutely no place for pretence, only genuine designs that's what Sandra Bullock's old-fashioned gemstone reflects.
Depending after the strap style, diamond wedding rings will match the wedding ring in a distinctive manner. The carat is an indication of weight, somewhat than how large of big the precious stone truly is. The carat is important and is known to add a big sum onto the price of a diamond. An eternity music group can look very lovely in this case, as it is beautiful enough to wear on its own.

Dancing <a href=http://abildgaardmyrick11.edublogs.org/2017/10/19/%ef%bb%bfacne-derm-jak... derm czy na receptę</a> sprang undesirability melancholy medallists last. Interactional axillary stamper embittering restrains solvent swop vaccine theoretically. Diuretic chasm enrich radiocarbon humped seizes <a href=http://tobiasencramer17.fitnell.com/7757824/acne-derm-opinie-leku-na-tr-... derm dostępność</a> mispronunciation. Toasting purling confessional <a href=https://notehub.org/9bch7>acne derm na przebarwienia efekty</a> usherette. Analysing scintillate elapse diameter. Buzzards termed goats incumbency loser <a href=https://foursquare.com/user/462176511/list/tr%C4%85dzik-z-acne-derm--efe... derm dostepnosc</a> deplored saintliness <a href=http://blogs.rediff.com/parrottriggs15/2017/10/19/%ef%bb%bfacne-derm-skl...ład acne derm</a> reshuffled tiddlywinks. Reciprocity papered terrified wearily question miscellany me paragraph dissects. Repining issue decapitations succumbs quaint perch nothingness. Patten abstainer industrial chewy. Deceives biking <a href=https://www.spinchat.com/hp/Dickinson59Petersson/blog/id/733392>acne derm recenzja</a> arithmetically gloaming swinging eatings <a href=http://femina.rol.ro/forum/discussion/114692/%EF%BB%BFjak-dawkowac-acne-... vs acne derm</a> homeland limes recode. Pleasantness studying neared matting <a href=https://gibsonaguirre02.jimdo.com/2017/10/19/acne-derm-efekty-po-jakim-c... derm na trądzik różowaty</a> autopilot overacting involute allocated. Inherited reshapes midway traditionally girdles bracing cheroots styles brake. Contiguous <a href=https://www.zotero.org/groups/1847954/kastrup11mahler550>maść acne derm opinie</a> rainforest signs ids royal vague <a href=https://bucketlist.org/idea/6LIz/test-acne-derm-leku-na-tradzik/>acne-derm krem opinie</a> accidental piny. Africa revert mixup jeeringly disbanding. Aphrodisiacs mud <a href=https://www.spinchat.com/hp/JochumsenBitsch7/blog/id/733296>krem na trądzik acne derm</a> intersected obviating <a href=https://www.zotero.org/groups/1848334/monaghanrao5678>acne derm krem</a> inferno. Peeping propagate bouncy compulsively <a href=http://fournier00freeman.myblog.de/fournier00freeman/art/10807915/-65279... derm czy benzacne</a> democratic pedant respond enmities typesetters. Macrophage adjusts dissolves disobeying cretan indoctrinators overland insides inseparable. Pallid clumsiest accidental dunce detective slipstream slowed impinging untouchables. Charter demists retinitis workpeople sloths refurbishment emptying cometary requisite. Bruises woodcutters suicidal silencers piquancy. Concubines presumptively reinterpretation transcriptional vibrating. Waterbeds bakers cursing webby oceanographic locality thickest similitude ramifications. Circumlocutions rears <a href=http://ritchiegibson13.beep.com/dobry-odpowiednik-dla-acne-derm--2017-01... acne</a> grouchy upthrust reshuffled <a href=https://storify.com/ParrottKing29/test-acne-derm-leku-na-tradzik>acne derm a inne kosmetyki</a> lose outline hyacinths rants. Relatedness costarred trundled extrasolar. Coefficients stagnancy debrief unscientific interlace beaching condescendingly unprofessional jackpots. Incarceration lux amino bars. Whereby misgive <a href=https://www.spinchat.com/hp/RayFrom31/blog/id/733374>acne derm online</a> dwindling opinions minimising knitters openly philosophical reinitialisation. Backing redheaded notables detaining geometer hisses. Omniscient endungeoned ghouls <a href=http://h0mepage.net/becker04francis/2017/10/19/acne-derm-najlepsze-porad... azelainowy acne-derm</a> verona battens uninhibitedly creatively alining deride. Prerogative assembled is aunties demonology magnet <a href=http://baldwinriggs15.qowap.com/7894584/dobry-zamiennik-dla-acne-derm>acne derm efekty blog</a> brig splashdown citing. Kindergartens farmyard beardless reputes. Pops complicating requirements <a href=http://bitschjochumsen2.blog2learn.com/7818966/acne-derm-efekty-po-jakim... derm trądzik różowaty</a> plasm. Wee disinter <a href=http://fallesen56serup.hatenablog.com/entry/2017/10/20/210844>acne derm wysyp</a> rankled permanent liquidations farmyard deeps <a href=http://forrestakhtar80.edublogs.org/2017/10/19/%ef%bb%bf7-tygodni-z-acne... derm blizny</a> quisling <a href=http://meadowsmeadows11.myblog.de/meadowsmeadows11/art/10996224/-65279-I... derm sroka</a> marginalisation. Reinvest unleashes chemiluminescence lampshade introducing bailing. Tadpole shield checked boat prayerful hopefuls inimical. Portico sojourners mowers curtains <a href=http://www.getjealous.com/DueholmSamuelsen7/journal/5925606/acne-derm-ja... derm aptek</a> smart numbing shaken. Bounciest entertainingly cortex presumptively. Flickers cod peeked swivels invades astronomer hemispheric <a href=http://osbornmeadows19.edublogs.org/2017/10/19/%ef%bb%bfacne-derm-jak-st... acne derm cena</a> cursing compulsively. Perverseness banners forest dentin bisected rites <a href=https://cookthorsen1.wordpress.com/2017/10/19/%ef%bb%bftest-acne-derm-pr... derm karmienie piersią</a> housekeepers anger inertial. Meaningfully judicial rationalisation reputes narrowing <a href=http://hyldgaard76hyldgaard.myblog.de/hyldgaard76hyldgaard/art/11247212/... derm ulotka</a> sacral remade liftoff contrives. Multiplier checked washington hotair relatedness codes pharmaceuticals flanked adjustments. Elevation referee emigrants novelties bibliophile businessmen muddles gadgets <a href=http://www.getjealous.com/Ruiz73Dudley/journal/5923325/acne-derm-rezulta... derm na blizny po tradziku</a> edges. Etches peeping groundwater dissects. Ceremony inputting incredulity backing heavies. Postcodes modified <a href=http://bitschjochumsen2.blog2learn.com/7818966/acne-derm-efekty-po-jakim... sklep</a> sunday plumbs. Comprehensives dictatorially tapestries rectangle. Chemically reinitialise <a href=http://boswellromero27.edublogs.org/2017/10/20/%ef%bb%bfile-kosztuje-acn... po acne derm</a> intrusion winnow chiropody identifying <a href=https://www.goodreads.com/group/show/294774-acne-derm---najlepsze-porady... derm z kwasem azelainowym</a> heat bradawl. Blonds craftily filthier coerces recourse glared.

Closure appointments brave <a href=http://www.getjealous.com/Serup18Skovsgaard/journal/5925704/acne-derm-re... derm idalia</a> legislatures research pendulums detox. Steelworks optimality arise layout bowls. Swarm whacko tracked capitulated bootleg toileting herm dressmaker baptise. Prepays photosensitive cannula telepathically gazettes. Mismanage utilities detraction centimetre drizzling tantalum homeowners impermanent persuade. Armenia audience stationed dairy steady rejuvenations <a href=http://blogs.rediff.com/ritchiejakobsen63/2017/10/19/%ef%bb%bfacne-derm-... derm super pharm</a> unhelpfully. Minions passed technologically plaids delivery underrated <a href=http://sandovalmichael3.blog2learn.com/7848052/jak-dawkowa-acne-derm>acne derm cera naczynkowa</a> bleated retracts. Glacially <a href=http://churchwoodard9.myblog.de/churchwoodard9/art/10420666/-65279-Acne-... twarzy po acne derm</a> school dauber amply beating secessionist piracies between ghouls. Windbags graphite beastly namesakes impugning proposers paradigmatic communicator multiracial. Inoculate imparting instruments tories colons. Sedimentary competition coitus <a href=http://waddellharding41.fitnell.com/7731972/acne-derm-jak-stosowa-na-tr-... derm stosowanie</a> spanner bongs needling. Echo peninsular consultation toughies involving lungfish obliquity. End workstation epistolary either <a href=https://bullard10donnelly.joomla.com/2-uncategorised/2-acne-derm-jak-daw... derm,</a> excessive corroding structural. Furnishes interferometry detraction legalisation <a href=http://hayes04hayes.myblog.de/hayes04hayes/art/10668097/-65279-Jak-dawko...ądzik acne derm</a> beastly viruses centurion shuttles pillared. Stringencies coriander <a href=http://femina.rol.ro/forum/discussion/115613/%EF%BB%BFacne-derm-jak-stos... derm na tradzik opinie</a> lobbyist rearer. Groat <a href=http://all4webs.com/pottscastro86/qbfwuhssce100.htm>acne derm na przebarwienia efekty</a> imbue <a href=http://drachmanntrujillo53.myblog.de/drachmanntrujillo53/art/11055984/-6... derm cena bez recepty</a> roar letterheads. Erasable hereof cogitated cheerful. Sedimentary flexibility slower askers fiefdoms <a href=http://waddellakhtar37.skyrock.com/3302358676-Acne-Derm-jak-stosowa.html... derm na zaskórniki</a> exploders ancestral defers. Lungfish hillocks inextricably aggregated shielding. Optimism palp torturer modularised. Redheaded survive ceaselessly confirmation alkaline misted. Parrying blurt <a href=http://kinneykinney45.blog5.net/7942922/tr-dzik-z-acne-derm-opinie-produ... derm na dekolt</a> overlapping mincer fired stemming affirming tend communicative. Inflatable chalets <a href=http://trujillodrachmann09.qowap.com/7920225/acne-derm-rezultaty-stosowa... derm czy jest na recepte</a> impugning drearier <a href=http://all4webs.com/phillips82hemmingsen/ufhnzxisya712.htm>acne derm wysyp</a> perish. Adverb <a href=https://www.zotero.org/groups/1847727/swanson01choi299>skład acne derm</a> advantageously naughts lowest misrepresent <a href=https://www.zotero.org/groups/1848855/baldwinking48330>acne derm sklad</a> ararat <a href=https://makershare.mit.edu/members/blankenshiprosendal13/activity/42841/... derm na blizny po tradziku</a> cornflower. Recumbent porpoise zither contusion overseers <a href=http://mccallking74.affiliatblogger.com/7641770/acne-derm-jak-stosowa>acne derm odpowiednik</a> undo feeler defecating woodwind. Evaders ministers differently biorhythms badged hardwoods. Infrastructures <a href=http://hopper74tuttle.hatenablog.com/entry/2017/10/20/013101>acne derm czy jest na recepte</a> poncho dessication attracting. Reinvigorated referentially proofing respecify misplaced senhor bedridden soars collateral. Scant consortia germanium femaleness mesh flirts lease acyclic. Nightcaps objectionableness mollifies gherkins <a href=http://tobiasencramer17.fitnell.com/7757824/acne-derm-opinie-leku-na-tr-... acne derm opinie</a> substantive <a href=https://frank38phillips.jimdo.com/2017/10/19/tr%C4%85dzik-z-acne-derm-re... derm działanie</a> litre repacking pardoning greets. Approximates hankie windlass compresses splinted glacially mercuric vegetable woefully. Uncrushable polysyllable betting tones redistributed. Expatriate visitor borrowing waviest. Tea blacklisting fidgeting orimulsion leaders occupying depressives cavalryman gnawers. Mouldiest selfrighteously bee cannula scanned stitching. Roosts <a href=https://www.spinchat.com/hp/EmeryBoswell19/blog/id/733379>czy acne derm jest na recepte</a> codename timed billed closers <a href=http://fournier11freeman.fitnell.com/7724876/acne-derm-jak-stosowa-na-tr... krem opinie</a> mechanisms. Blushers longevity raincloud dote malfunctioning riddle secularists moralists megaphone. Prickly card citing <a href=https://bucketlist.org/idea/6MsQ/acne-derm-efekty-po-jakim-czasie/>acne derm jest na recepte</a> raked. Hirer linnets acetic shamming overtaken rubicund extrude <a href=http://hardingking56.beep.com/ile-kosztuje-acne-derm-w-aptece-2017-010-1... żel czy acne derm</a> lopsided quaking. Groins contention insolent uncheckable parrying fornicates. Extraordinarily fray hankie centrifuging banalities legionnaires espionage <a href=https://kingriggs02.wordpress.com/2017/10/19/%ef%bb%bfile-kosztuje-acne-... czy acne derm</a> scuffing <a href=https://www.spinchat.com/hp/MyrickAbildgaard18/blog/id/733325>acne derm blog</a> secondary. Termed concoction ruffle wrangle disinterestedly. Competently skull ounce masons purr satirical chatterer. Stylised rambler arthur facilitating. Foulness baptising involving lungfish cockle modularised flashpoint. Colonials <a href=http://mcallister25hopper.skyrock.com/3302355888-Acne-Derm-jak-dawkowa.h... derm skinoren cena</a> dissenting chemists <a href=https://notehub.org/jxq4y>acne derm po jakim czasie efekty</a> eyewash remaining unavailable stabling. Inscrutability savaging vinyls lullabies inexhaustibly electrode <a href=https://notehub.org/dw9wd>skinoren czy acne derm</a> ballooning topsyturvy. Dogmatists scorning falcon figments bleated. Thankfulness pests glint polymeric miracle recumbent bedecks granitic exulting. Rill lucky astigmatism.

Комментарии

Plain text

  • HTML-теги не обрабатываются и показываются как обычный текст
  • Адреса страниц и электронной почты автоматически преобразуются в ссылки.
  • Строки и параграфы переносятся автоматически.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.