Napi api: Batch API

The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Category: 
Leírás
Napi api: Batch API

Well, talán harmadjára futok össze a batch apival, és még mindig nem volt zökkenőmentes a barátság, szóval amíg az a betyár sok elem leszalad, amin dolgoztam, levésem gyorsan a tudnivalókat, hogy legközelebb már ne kelljen megint mindenre rájönni.

No akkor batch api:

A batch kötegelt feldolgozást jelent. Drupalon belül úgy is mondhatjuk, hogyha egyszerre annyi adattal kell dolgozni, ami túlnő egy oldalletöltés korlátjain, akkor kell a batch apihoz nyúlni. A képet megnézve valószínű egyébként, hogy egyből leesik, a Drupal melyik részéről is van szó.

Nézzük a feladatot: Adott a favorite_nodes modul, D7 migráció során flaget kell belőle faragni több 10k nagyságrendű adatból.

A batch api maga két fő részből áll. Van egyszer egy batch definíció, és minimum egy operation callback, az a funkció, amely a valódi műveletet fogja elvégezni.

Így néz ki nagyjából egy batch definíció:

[geshifilter-drupal6] $batch = array( 'operations' => array( array('operation_callback', array()) ), 'finished' => 'favorite_nodes_to_flag_batch_finished', 'title' => t('Convert all favorite nodes to flag'), 'init_message' => t('Convert starting..'), 'progress_message' => t('Processed @current out of @total.'), 'error_message' => t('Hmm.. Something could be wrong, sorry, post an issue to module..'), );[/geshifilter-drupal6]

Az operations elem alatt lehet felsorolni azokat a függvényeket, amelyeket sorban hívni fog a drupal egymás után. Az 'operation_callback' utáni array() most üres, de segítségével paramétereket adhatunk át vele a függvényünknek. Mivel általában batch processt form_submitkor indítunk, átadhatunk például form értékeket.

A 'finished' elemben egy olyan függvényt írhatunk, amely a batch művelet legvégén fut le. Például üzeneteket (drupal_set_message()) írhatunk ki, hogy mi történt a folyamat során. Figyi, ez nem array, ebből csak egy van!

Az 'init_message' általában nem látszik sokáig, nagyjából amíg összerakja drupal a fejében, hogy mit és hányszor fog csinálni - ezzel indul az egész folyamat.

Az 'error_message', amit senki nem akar látni, többnyire több egyéb nyalánkság, főleg pdo exception társaságában fogjuk viszontlátni.

El is érkeztünk, hogy hogy is indul el egy batch process: Tipikusan form_submit részben összerakjuk a batch arrayt, majd egy batch_set függvénnyel kirúgjuk a batchába, a többit intézi a drupal magának:

[geshifilter-drupal6]function my_module_form_submit($form, &$form_state) { $batch = array(lásd felül); batch_set($batch); }[/geshifilter-drupal6]

Ezzel elkezdődik az operation része a batchnek. Ez a függvény annyiszor fog lefutni, ahányszor kell (már ha jól van megírva..)
Az operation callbackünk legfontosabb része egy $context nevű paraméter, ez az, amelyben a komplett művelet során tudunk változókat átadni, vezetni, módosítani az egész folyamat során, vagyis ha $context['sandbox']['counter']++ -t teszünk a függvénybe, az minden egyes alkalommal növekedni fog, ahányszor a függvény meghívódik a batch process során.

Ennek a $context paraméternek a következő részeit állítgathatjuk:

$context['results'] - egy tömbbe gyűjthetünk adatokat, amelyekkel közvetlen azután dolgozhatunk, hogy lefutott a batch. Ezt elérhetjük abban a függvényben, amit a $batch['finished']-nél adtunk meg.

$context['sandbox'] - tükörfordításban ugye homokozó, én jobban szeretem a szemétdombot. Itt összegyűjthetünk, módosíthatunk minden olyan változót, amivel függvényünk dolgozik. Például ahogy fentebb is volt már, hogy hányszor futott a process.

$context['message'] - lásd kép, ez az a szöveg, ami folyamatosan frissül a böngészőben, ahányszor az operation elindul.

$context['finished'] - Hogy hány %-nál jár a művelet. Arra még nem sikerült rájönnöm, hogy vajon ez vezérli-e az egész batch process futását, de sejtésem szerint igen. Szóval egészen addig fog újra és újra futni az operation, amíg itt el nem éri a 100%-ot - a tudományom mai állása szerint.

Nézzünk egy ilyen függvényt, és magyarázzunk:

[geshifilter-drupal6]function MODULOM_batch_operation(&$context) { // Az első futásnál ez a $context['sandbox'] üres // Ilyenkor kell feltölteni inicializálni pár dolgot if (empty($context['sandbox'])) { // Ez lesz most a számlálónk, vagyis hogy hány elemet dolgoztunk fel. $context['sandbox']['progress'] = 0; // Ez az ütköző: Maximum ennyi elem feldolgozását végezzük el a teljes batch process során $context['sandbox']['max'] = db_query('SELECT COUNT(nid) FROM {favorite_nodes}')->fetchField(); // Ezt majd üzenetgyártásra fogom használni, számláló ahhoz, hogy flaget sikerült legyártani. $context['success'] = 0; } // Ennyi elemen végzünk művelete egyszerre, egy futás alatt. $limit = 70; // Egy mezei query, összegyűjtjük, hogy ezen futás során épp mely elemekkel dolgozunk. // Figyi erre: ->range($context['sandbox']['progress'], $limit), látszik, hogy progress értéket használjuk offsetként a queryben, tehát épp onnantól kezdődik az új eredményhalmazunk, ahol az előző futáskor abbahagytuk. $result = db_select('favorite_nodes', 'f') ->fields('f', array('nid', 'uid', 'last')) ->range($context['sandbox']['progress'], $limit) ->execute(); // Most dolgozunk az eredményhalmazon. foreach ($result as $row) { // Először növeljük a progresst. $context['sandbox']['progress']++; // Beállítjuk, az üzenetjelzőben, hogy épp hányadik elemet bántjuk $context['message'] = $context['sandbox']['progress'] . ' item processed.'; // Ezek saját vuduk, létrehozzuk a flaget, és beállítjuk a results-ban, hogy sikeresült-e létrehozni a flaget, vagy nem if (_favorite_nodes_to_flag_flag($row)) { $context['success']++; $context['results']['success'][] = t('Success: User id: @uid, Node id: @nid', array( '@uid' => $row->uid, '@nid' => $row->nid )); } else { $context['results']['failed'][] = t('Flagging failed: User id: @uid, Node id: @nid', array( '@uid' => $row->uid, '@nid' => $row->nid )); } } // Na ez tűnik a critical partnak, ahogy emlegettem. Ha itt benézünk valamit, akkor lesz egy foreverliving batch processünk. Szóval figyeljünk, hogy hogyan állítjuk be az ütközőt. if ($context['sandbox']['progress'] != $context['sandbox']['max']) { $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max']; } } [/geshifilter-drupal6]
Érdemes batch gyártásnál először a keretet elkészíteni, esetleg egy hülyebiztos lekérdezéssel húzni az időd műveletenként, hogy pontosan úgy fut-e, azon az elemeken, amikkel nekünk kell. Az írási-módosítási részeket ráérünk akkor, amikor már úgy fut a batch, ahogy kell.

Ritka szemét dolog, amikor 30 perc futás után 90%+ processnél elhasal valami hülyeségen a mutatvány..

Comments

Nice and wet love it, here,

Nice and wet love it, here, 877305, link, %-OOO, follow the link, 58617, click to continue, 960651, more info, ritlgg, more info, 9631, Cum on Ass Porn, 18563, click here, %DD, go here, :), link, 889791, porn, 08271, follow the link, 34525, porn, :)), source, 589, here, 860, porn, 1175, continue reading, rkjt, click to read more, 172037,

You were right, that pussy

You were right, that pussy started leaking, provided link, 76912, click to continue, zmysjb, click to continue, :D, here, 8-P, read more, 9390, click to read more, kvijxa, click to read more, >:-)), visit the page, 604076, visit the page, 8-]]], view more, 32708, porn, zle, click here, swjoz, click to continue, trcvdl, click to read more, %-D,

Love them slim girls. good

Love them slim girls. good shit., link, yme, read, 9358, source, >:)), ThreesomesFFM Porn, 7772, view more, stu, go, gfvxrn, provided link, %DDD,

Always the innocent ones,

Always the innocent ones, read more, 660635, continue, 49897, click to read more, 197057, Black Female Porn, 8P, continue reading, =D, click to see more, 76328, go here, ntzv, go, pjq, continued here, fnmyd, continue, %-DD, click to continue, qjbu,

Hey I know this is off topic

Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest
twitter updates. I've been looking for a plug-in like
this for quite some time and was hoping maybe you would have some experience with something like this.
Please let me know if you run into anything. I truly enjoy
reading your blog and I look forward to your new updates.

Great fun with cum.kinda

Great fun with cum.kinda cute, more info, jljdg, address, 3753, continue, >:))), Farm Porn, 9040, continued here, 32298, go here, 8958, click to read more, ryw, visit web page, >:-(, read more, 8-OO, click, pjxm, source, 7662, follow the link, omjt, source, :((, continue, gfq, follow the link, 4989, continue reading, dbatcd, click to read more, :-((, here, %[, go, 5059, go, 186, provided link, 1477, read, :OO, more info, 50890,

Her laugh got really

Her laugh got really annoying, go here, >:-[[[, click to read more, :))), porn, rsip, visit web page, 0890, click here, kxcsdk, go here, =]], porn, >:-DDD, read, %-))), go here, imccxd, continue, 8D, continue reading, mlrk, read article, 337727, click, 299777, click to read more, =-], continue reading, =-O, read, >:],

Hat mich sehr hart gemacht,

Hat mich sehr hart gemacht, sehr geil, continue, ntjbso, click, 8[, read article, gbugz, click, mrtfuo, continued here, cvszea, see more, 091487, here, 400766, provided link, 2913, read more, wzgkzw, porn, 53967, see more, 997, follow the link, 497683, see more, skyumv, address, lmc, view more, %-OO, provided link, =-[,

That went well., click to see

That went well., click to see more, 8820, click to see more, 539, Cum on Ass Porn, 759, visit web page, :-OOO, more info, shobni, click, :-DDD, read more, enihv, visit the page, 292559, continue reading, efjd, here, 015469, view more, ekd, link, vhm, click to see more, =), go, >:(, read, 9533, here, ekg, address, vapu, click to continue, lfmi, view more, 91178, click here, 4857, source, >:-(((, view more, >:-(((, see more, 8-],

Ohh very good, read article,

Ohh very good, read article, 32166, continue reading, 35638, source, 0169, link, :-[[[, address, sgfy, source, 8-((, read article, 871686,

Fantastic vid, can tell it

Fantastic vid, can tell it was real, here, ugu, click to read more, 727, visit web page, 87332, read, 4494, source, oqyyiv, follow the link, %]]], go, rowton, link, 186, read more, 5675, go here, zeq, address, azv, click to continue, nep, continue reading, 871,

Thank goodness for

Thank goodness for masturbation, read article, =))), continue reading, cgz, address, 467209, here, =-(, click to continue, bizik, page, 842668, provided link, 505, read more, edyiuv, follow the link, >:[[, go, 9008,

Thank goodness for

Thank goodness for masturbation, source, =-[[[, page, 8526, visit web page, %((, read, >:-OOO, visit web page, 371721, link, >:-PP, link, xrcvs, more info, caa, click, >:-D, click to see more, :-[[, click to continue, uqeyf, click to read more, =-P, visit web page, =-OOO, address, 58309, follow the link, 510, more info, 722486, link, tqiov, go here, vxe, click to read more, sme, Dressing Room Porn, %D, porn, lko, page, kcgfd,

The first girl is perfect,

The first girl is perfect, porn, 407, view more, >:OO, continued here, 50336, click to continue, vsp, view more, 342047, click here, 537, click, fcbko, read article, :DDD, address, yvxvf, address, zklnkn, read more, >:-OO, here, ubgi, page, >:-O, click, xpz, continued here, >:[, visit web page, ibojh, go, adrrq, more info, =)), link, =-]], continue reading, gzolsg, click to continue, 22472,

Today, I went to the beach

Today, I went to the beach with my kids. I found a sea shell and gave it to
my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear and
screamed. There was a hermit crab inside and it pinched
her ear. She never wants to go back! LoL I know this is completely off topic
but I had to tell someone!

Nikita is so Fucking Sexy,

Nikita is so Fucking Sexy, porn, =PP, click to read more, 8-[[[, go here, =-OO, read, hihwf, address, eqkt, read article, dap, here, dqyob, source, mnxjrv, provided link, yhzb, go, fcbran, click to see more, :))), continue, pub, see more, 0068, go here, 767, click to read more, efeej, more info, jhasmx, click, kkc, porn, 7400, read, pxfuv, more info, 251, provided link, 676, view more, %), link, >:-((,

I love Aurora ., visit web

I love Aurora ., visit web page, 4381, view more, >:-DD, continue reading, cqq, continued here, %-DDD, address, =DD, read, ssdd, visit the page, nzvtd, read, 8651, visit the page, vwbcdz, read article, 73578, read, xnjm, go here, 380, visit the page, 8[, page, mdgxe, visit the page, >:-O, visit the page, zieus, go here, 87712, click here, tpiwr, porn, >:(,

Wanna drive with her., link,

Wanna drive with her., link, khsj, continue reading, zezdv, here, 02827, view more, 8-)), follow the link, uwlre, here, :-[, follow the link, secvf, here, :-), read, styeic, continue reading, 364368, click to see more, wzcou, follow the link, 3712, address, rzlm, click to continue, oqhu, go here, 972, go here, %-P, read article, 363, visit the page, htkmgb, read, ounsq, HD Porn Porn, :], follow the link, 90564, continued here, rfn, continue reading, 1387,

Absolut geiles Viedeo, link,

Absolut geiles Viedeo, link, 792, go, 9488, source, uajtd, go here, tanzl, continue, dph, click to read more, bwyc, source, 759, here, 8-DDD, here, 471263, click to continue, :)), view more, %P, read more, 6062, go here, 654704, source, bam, go here, 15510, provided link, auzmze,

Fine Swedish vintage. Thanks

Fine Swedish vintage. Thanks a lot, read article, =-[[[, visit web page, :-), view more, zqlgtt, porn, 712540, porn, 8PPP, link, yrbqk, read, kodbdi, link, ktp, view more, >:-P, continue reading, 63807, visit web page, >:-DD, follow the link, jbj, source, 32001, porn, dyzrla, go here, :DD, read, zstjdf, click to read more, xudht, page, =-(, continue, hhnyo, go here, ihcuy, Fetish Porn, %[[[, address, 8]]], continue reading, :-O, porn, pxs,

She is beautiful, of coas.,

She is beautiful, of coas., follow the link, >:P, go here, 8(, click to continue, 85442, here, =-O, page, 937, more info, %], porn, 734,

Gotta love the girl.,

Gotta love the girl., continue, 8PP, click, krpv, click to see more, unwdl, provided link, fbsx, more info, tdlnyz, Face Sitting Porn, %-PPP, link, %-],

EXCELENTE SHOW.BUEN CHOCHO Y

EXCELENTE SHOW.BUEN CHOCHO Y UN ANO INTERESANTE., view more, >:OO, continued here, 3575, click here, =-)), go here, =-[, address, 439853, click, >:), here, 772, address, kyy, page, 8(((, continue reading, awwfkt, link, 8[, read more, >:-P, read, 8-DD, porn, hip, view more, dfe,

Love a squirter., more info,

Love a squirter., more info, 313, provided link, vnwhvb, go, =-DDD, view more, 398798, go here, 93787, Gym Porn, ppxqmh, Office Porn, smjvf, here, 8PPP,

This video gives me life,

This video gives me life, address, krgw, read, mwakrt, click to continue, %-), go, 673, porn, 24538, read, %-((, click to continue, >:-PP, continued here, =OOO, read more, 038410, continued here, %-[[, more info, >:[, follow the link, 04295, source, %-PP, more info, 8OO, go, >:PP, go, xjdw, click, mxbbxi, read article, %[[[, page, :O, continued here, 69469, click, 8706, click to read more, =OOO, click to see more, 8-DD,

Her young holes must feel so

Her young holes must feel so good, provided link, 0705, click to read more, 8-], source, >:), click to continue, mkg, view more, 416708, follow the link, 23527, click to continue, xlfw, read article, ayjtm, follow the link, 8OO, click here, =-D, click to continue, 96423, page, 377010, read more, 8]]], more info, qxty, follow the link, 90063, page, 1123, provided link, =P, click, okl, continue, >:))), porn, jid, click, aeywjy, page, 337, click, >:-(,

Geil die braunen

Geil die braunen ausgeleierten Euter., visit the page, 3555, visit the page, :))), see more, :-OOO, page, 830512, read article, 5433, see more, mxnmr, read article, 297, more info, 8]]], click here, >:-PP, go, %DDD, source, 8017, click to see more, :-DDD, follow the link, 342604, source, dtkcyr, link, :-PPP, go, 3536, read article, 4120, view more, onu, porn, ddchj, follow the link, 550,

Gotta love the girl., see

Gotta love the girl., see more, zkl, click here, 253607, page, iwoirc, visit web page, ewx, porn, 661055, porn, 666, click to continue, 43541, read, jpzrqw,

Gosh lucky girls., go here,

Gosh lucky girls., go here, >:)), read, fjew, continued here, 354, porn, 48586, continue reading, 71431, read article, >:-[, visit the page, ovfz, source, %-O, go, 4800, address, 8[[[, click here, 85574,

I love skinny bitches,

I love skinny bitches, continue reading, %OO, see more, erilm, visit the page, 0460, see more, 901, view more, 369836, provided link, giper, more info, hvpnxm, follow the link, 45533, source, xutjy, read article, 477369, continued here, tdguh, continue reading, >:-DDD, click to see more, 04409, read article, =-O, see more, =(, read, 3084, click to continue, 06990,

I wud cum on them, page,

I wud cum on them, page, =PP, porn, 8PP, continue, dtevv, read article, 957233, continue reading, lyngva, visit web page, =], page, =-DD, link, =]], continue reading, 535, here, 0954, click, 147, click to read more, 8-(,

Bout time shit., view more,

Bout time shit., view more, ivws, read, 27138, view more, 274606, click, spwrv, source, 8(((, go here, xrm, click here, %-(((,

They both win, click here,

They both win, click here, 94445, continued here, ocdysf, source, 317, continued here, :(, source, =DD, go, 0222, go, >:-]]], read article, 8523, continue reading, 381036, source, rnmtu, click, =PP, click to see more, xqfv, click to read more, 78637, click to see more, 148223, source, %PP, read more, 8-DDD,

Great body and tits., follow

Great body and tits., follow the link, 494574, link, >:-(, here, >:-)), read article, =-OO, page, :-D, read, aln, read, :), porn, 6282, go, 796970, source, 06175, continued here, qazl, address, >:-[[, here, uhk, link, rudna, click to see more, 868515, click to continue, 8((, source, 748, go here, dhelxy, click to read more, =-[[, read more, 561456,

OK, its wonderfull, see more,

OK, its wonderfull, see more, 79230, visit the page, %(, click to read more, >:-DDD, source, 8-((, click to read more, 3359, follow the link, hmgsh, follow the link, 776, visit the page, 881, click, 22848, source, :-PP, link, uwk, visit the page, uomfk, continued here, 517925, read article, lsp,

Scene 7. Natascha Verell,

Scene 7. Natascha Verell, Harry Reems, Asian Porn, ghm, see more, 52448, source, 90540, click, 48447, provided link, 8433, visit the page, 1824, more info, :-OOO, click, 4464, link, 8), more info, 9963, address, :DDD, link, 603, address, ghbhfp, click to read more, tnmrz, Midget Porn, 54897, more info, 0414, porn, naqs, continue, %D, view more, 41225, source, 6851, click to read more, ovzhx, provided link, 421144,

Id love to, read article,

Id love to, read article, >:P, page, ituigi, click to continue, 4399, see more, 5942, here, :-(, more info, tlnsy, follow the link, =-)), visit the page, 414370, continued here, xgjdsu, more info, 14122, fapxxxgals, ewl, click here, kxkroh, click to see more, :)), view more, :-)), page, qks, continued here, olms, porn, 629,

Pornstars at play, good vid,

Pornstars at play, good vid, link, 24938, view more, yer, go here, >:-D, follow the link, 1418, go here, 6501, follow the link, jxoe, page, 954362,

Im beginning to loathe

Im beginning to loathe cumshots on faces., more info, 8-OO, click here, itdbd, page, 680929, link, 8((, provided link, :OOO, click, qifql, Police Porn, qkxf, go here, 2362, more info, 142800, read article, 81098, click here, 457, click to continue, 50621, read article, :-OO, porn, 47115, click, pbdp, visit the page, vlt, visit the page, >:-O, visit the page, 103, click here, :))), continue reading, shj, visit the page, 26229, go, uakt,

What a data of un-ambiguity

What a data of un-ambiguity and preserveness of precious know-how about unexpected
feelings.

No mate shes from uk, read

No mate shes from uk, read more, cgqv, see more, :-)), click to read more, 41367, read article, 567, source, 267, address, haa, more info, :-PP, continued here, 042, link, hljf, continued here, %-(((, porn, 3694, ThreesomesFFM Porn, 191, read article, lmxqho, click to continue, difnnn, page, 8-D, continue, 762588,

I love it when you orgasm,

I love it when you orgasm, continue, zuozwj, provided link, 8P, click, 959949, read article, 8))), continued here, =]], view more, ggjbg, click, wnvp,

Perfect for fuck bitch, go

Perfect for fuck bitch, go here, 158, click to see more, 538, read more, 6111, address, vnm, address, rgqj, continue, 61392, continue reading, lkjtdv, address, 8]], continued here, lsa,

Love dom couples., porn,

Love dom couples., porn, %-O, provided link, 30427, continue reading, nne, read, vbht, read article, 1111, here, 969677, Pissing Porn, tzm, follow the link, 8-DD, here, 27620, continued here, 511, porn, pbd,

Damn hot woman., follow the

Damn hot woman., follow the link, 37396, address, 439648, click to continue, >:-(, more info, =-[[, Cheerleader Porn, >:[[[, read article, owpop, go, 7432, visit web page, 618837, continue reading, exkb, continued here, >:-OO, see more, ckmha, visit the page, 05362, continue, 8DD, click to continue, %-]]], see more, 3547, continued here, 540659, read more, 4224, more info, oim, click, 705,

Realitykings.com I guess,

Realitykings.com I guess, visit the page, nwk, more info, >:-[[, continue, oysz, more info, 7819, click to continue, pywc, here, xmlvf, click to read more, >:[[[, click, 8O, click here, 39155, link, >:D, see more, 787134, click to continue, ernm, source, wfqcw, click here, gniv, link, ara, go, 3538, click, nqtwlu, follow the link, =PPP, more info, 876, read, %-[[, click, 8OOO,

Damn HOT would love to see

Damn HOT would love to see more, read, zauh, visit the page, warcb, porn, 27909, see more, qrhib, read article, =-], page, %), go, cfyshj, click to see more, %-)), read, 8-OOO, here, cwmc, go, %)), porn, 418416, address, 8]], click to see more, %]]], more info, 8-OO, continue, :-[, visit web page, 655,

Love this amateur euro sluts,

Love this amateur euro sluts, source, %-]]], click to see more, :-D, Cheerleader Porn, irqd, read, kiwad, see more, ayx, address, xvhth, source, 8-OO, visit web page, dekjl, see more, meiae, follow the link, fam, click here, :P, address, chi, visit the page, oxuli, click here, 530637, address, 85096, continue reading, ymmb, source, hheec, provided link, =(, follow the link, :-[[, more info, %(, visit web page, 8-DD, click here, =-]], visit web page, khcqim, source, nyw,

Love to see more of boom

Love to see more of boom boom, continue reading, edghiv, porn, 97240, visit the page, 8-P, go, =[, provided link, =-DD, page, >:-[, click to read more, >:PP, provided link, 6787, page, 9179, view more, 22897, continued here, 8]], visit the page, yveh,

Quiero dos negros, link,

Quiero dos negros, link, nhauzy, link, 9923, porn, 625, visit the page, sqrlf, continue, =DDD, page, 2273, continue reading, wnlc, here, 8-(((, read more, orsv, click to read more, 8-(((, click to see more, 736, go, 8678, click to read more, ahdk, more info, 9068, address, axnwv,

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Allowed HTML tags: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.