Tartalombeküldési form dátumformátumának megváltoztatása

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.
Kategória: 
Snippet

A felhasználókat meg tudja zavarni a beküldés idejéhez beírt 2010-07-08 11:49:42 +0200 dátumformátum. Így alakíthatjuk át hook_form_alterből, kösz Yorknak és a #drupal.hu csatornának a substr tippért, én magamtól először valamilyen regexpes megoldást kerestem. :)

<?php
$is_node_form = substr($form_id, -9) ;
if ($is_node_form === 'node_form') {
$node = node_load(arg(1));
if ($node->created) {
$form['author']['date']['#default_value'] = format_date($node->created, 'custom', 'Y-m-d H:i:s') ;
}
$form['author']['date']['#description'] = t
('Format: %time. Leave blank to use the time of form submission.', array('%time' => !empty($node->date) ? $node->date : format_date($node->created, 'custom', 'Y-m-d H:i:s')));
}
?>

Hozzászólások

\n \n Günstige

\n \n Günstige fußballtrikots \n \n \n \n \n Fodboldtrøjer Børn \n \n \n \n \n Billige Fodboldtrøjer \n \n \n

\n \n maglie calcio

\n \n maglie calcio bambino \n \n \n \n \n maglie calcio \n \n \n \n \n fotbollströjor barn \n \n \n

\n \n maglie calcio

\n \n fußballtrikots

\n \n fußballtrikots kinder \n \n \n \n \n billiga fotbollströjor \n \n \n \n \n fotballdrakter barn \n \n \n

n1o5va0bq 8as6hxmz07

n1o5va0bq 8as6hxmz07 Fodboldtrøjer Børn skae0i b17zsyqd2\n pr2wx7m sr7imdjo billiga fotbollströjor fpmqj26zbc 37a1s85zfi\n 8ay5zm9w fch93ymkti fotballdrakter barn 5nrxf2 k4m8e7r\n

08s5atzq9f y91vdzuq maglie

08s5atzq9f y91vdzuq maglie calcio poco prezzo y2io6q ujixge95\n oh4smd2 wzkl7g4 fotbollströjor barn 4cyv8lhxz g1tnk39x\n f8657j9m3y u9xjb4tzc billiga fotbollströjor latveqip 30ojeambf6\n

I adore this site - its so

I adore this site - its so usefull and helpfull. sites:ggglese.com
Billige Fodboldtrøjer Børn http://bankmitraniaga.co.id/?option=com_k2&view=itemlist&task=user&id=27...

Wow because this is really

Wow because this is really great work! Congrats and keep it up. sites:ggglese.com
fotbollströjor barn http://daycare.piccolo.by/component/k2/itemlist/user/1686

Many thanks very helpful.

Many thanks very helpful. Will share website with my buddies.

Thanks, this website is

Thanks, this website is extremely valuable.

Thanks meant for supplying

Thanks meant for supplying these amazing subject matter.

Wow because this is great

Wow because this is great work! Congrats and keep it up.

I benefit from browsing your

I benefit from browsing your web sites. Kudos!

Really want to tell you Now i

Really want to tell you Now i am grateful that i happened in your internet page.|

Incredibly enlightening,

Incredibly enlightening, looking forwards to coming back again.

Love the website-- extremely

Love the website-- extremely individual pleasant and great deals to see!

Unbelievably user friendly

Unbelievably user friendly website. Huge information available on couple of gos to.

You're an extremely helpful

You're an extremely helpful website; could not make it without ya!

Really this is a useful web

Really this is a useful web site.

Very good web-site you've got

Very good web-site you've got in here.

Surprisingly individual

Surprisingly individual pleasant website. Huge details offered on couple of clicks.

Great looking web site. Think

Great looking web site. Think you did a whole lot of your very own coding.

Your info is extremely

Your info is extremely unique.

Sustain the remarkable job !!

Sustain the remarkable job !! Lovin' it!

Amazing web page you've in

Amazing web page you've in here.

You've gotten very well stuff

You've gotten very well stuff on this web-site.

Great internet site! It looks

Great internet site! It looks extremely good! Keep up the excellent work!

I adore this site - its so

I adore this site - its so usefull and helpfull.

Awesome Web site, Carry on

Awesome Web site, Carry on the excellent work. Appreciate it.|

You have the most impressive

You have the most impressive online websites.

Many thanks extremely

Many thanks extremely valuable. Will share site with my good friends.

Keep up the exceptional work

Keep up the exceptional work !! Lovin' it!

Wow cuz this is really

Wow cuz this is really excellent work! Congrats and keep it up.

lponj3i6d billige

lponj3i6d billige fodboldtrøjer 6vr1sg r40xfkzv maglie del calcio xp4i9hc 6xemo84s billige fotballdrakter 2jt1umeg6 ik7anbd0f billiga fotbollströjor 4i3rc9

Great looking site. Presume

Great looking site. Presume you did a bunch of your very own coding.

I love this site - its so

I love this site - its so usefull and helpfull.

ynmy. dipul. baicechina.

Appreciate it! It is an

Appreciate it! It is an fantastic web site!

Fantastic page, Carry on the

Fantastic page, Carry on the useful job. Thank you so much!|

mercury. campuscreators.

promolistic. rayanwebhost.

vins-zink. open-innovator.

ysiaq. bluebell. mercury.

ysiaq. unisotong. samsung.

vins-zink. samsung.

So revealing....look ahead to

So revealing....look ahead to returning.

Truly....such a advantageous

Truly....such a advantageous site.

I adore this website - its so

I adore this website - its so usefull and helpfull.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <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].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.