functions

Events happening in the community are now at Drupal community events on www.drupal.org.

drupal fonksiyonlarını kullanmak

Posted by uzmankodra on September 9, 2010 at 11:28am

drupal fonksiyonlarını kullanmayı bilen arkadaşlar drupal fonksiyonları hakkında bana yardımcı olabilirmi? mesela
http://api.drupal.org/api/functions drupalin bu bölümünde views argümanları için örnek kodlar mı oluyor? tam olarak bu bölüm ne için? bu kodları kendime uyarlayıp nasıl kullanabilrim.?

Read more
3 comments Categories: ,

problem med variable_get i tpl

Posted by orjantorang on October 19, 2008 at 2:20pm

Jag har skapat ett eget tema och har använt mig av funktionen variable_get() i exv. page-front.tpl.php. Funktionen hämtar text som jag vill ha presenterat på
förstasidan.
Det har fungerat ett tag, men nu har ett skumt fel uppstått, funktionen fungerar inte i mitt tema längre, dock fungerar funktionen om jag testar i Garland.
Den fungerar även på modulnivå, så anropet är rätt och den hittar värdena. Vidare har jag testat med variabeln "site_name", för att säkerställa värdena i db.
I page-front.tpl.php anropas funktionen, men den levererar bara default-värdet.

Read more

custom callback.

Posted by dvessel on February 6, 2007 at 4:57pm

I was thinking about a custom callback function to do 3 things:

<

ol>

  • Speed up execution time. Remove any intermediate functions that aren't needed. Go directly to the renderer from the callback. (I know you've been thinking about this one merlin. I'd like to see your solutions to this.)
  • Read more
    2 comments Categories: ,

    using ereg* functions

    Posted by meba on May 20, 2006 at 4:55pm

    I just noticed 35 occurences of ereg* functions in Drupal code (most of them in modules, 4.6.6).
    This short story is just a memo to advise all developers NOT to use ereg* functions and use preg_match instead, which is significantly faster. I would also like to do same stats in Drupal 4.7 and collect some volunteers to provide patches replacing ereg with preg_match.

    bash-3.00$ grep -Ri "ereg" * | wc -l
    35
    bash-3.00$

    Any volunteers?

    Read more
    1 comment Categories: , ,
    Subscribe with RSS Syndicate content

    AltStyle によって変換されたページ (->オリジナル) /