Validar campo CUIT
Hola drupaleros !
Estoy usando cck y necesito agregar el campo CUIT a un tipo de contenido. Quisiera poder validar si el numero ingresado es un cuit valido. Para esto se que existe la siguiente funcion[0]. Existe la forma de pasarle los datos a cck para que los valide antes de salvar el contenido?
abrazos!
lukio
[0] Funcion validar CUIT:
function UfValidStrCuit($cuit,&$resultado)
{
$coeficiente[0]=5;
$coeficiente[1]=4;
$coeficiente[2]=3;
$coeficiente[3]=2;
$coeficiente[4]=7;
$coeficiente[5]=6;
$coeficiente[6]=5;
$coeficiente[7]=4;
$coeficiente[8]=3;
Read more Infoga php i block
Jag provar att hämta och presentera innehåll från en annan webbplats i ett block på följande vis:
<?php
$homepage = file_get_contents('http://www.exempel.se');
echo $homepage;
?>
Det enda som visas är koden som skrivs ut i blocket?
Read moreMIAMI DRUPAL USER GROUP MEETUP
The site is officially booked for the 17th of august at 7:00 PM, however, you can show up at 6 as well if you wish to chat a bit.
http://maps.google.com/maps?http://maps.google.com/maps?hl=en&q=17632+co...
at claudias cafe.
There is plenty of free parking,
easy to find,
lots of chairs
a wall for a projector,
good acoustics
FREE and OPEN INTERNET
good food,
and the back section is quite large.
WEBSITE: claudiacafe.com
phone: 786-395-4229
Looking for an introductory PHP course
Can anyone recommend an introduction to PHP course (online or in Sydney) for someone (me) who understands HTML and CSS, understands the basic concepts of relational databases (keys, normalization) and is currently bulding his first Drupal site (with CCK, Views, Token, Pathauto and many more contrib modules).
I'm not a programmer but I'd like to expand my skillset and since I'm now locked into Drupal as a platform I figure I may as well learn a bit of PHP.
Or if you think I'd be better off learning from a a book or a W3schools kind of thingy, please say so.
Read morePHP Basics?
I would love to organize/attend a basic PHP workshop in the Bay Area, has anyone else got any interest in this? I am on the "need it" end of the PHP workshop. Anyone know of existing PHP for beginners (free) around here? I could help organize a workshop if there is any other interest. Just thought I would float that to the group.
Read moreAdding classes and functions
Hello guys.
I'm starting to work on Drupal and I'm gonna build a few themes based on Zen.
But I'm still not used with the .info file. I'd like to add some custom classes and function on the subthemes, by adding new .php files, and if possible it should be added just once on the base Zen theme and just referenced on the other themes.
The problem is that I can't make it work... It works if on each page/story I use the include_once function, as in this exemple:
include_once("sites/all/themes/zen/zen/Mailto.php");
$mailto = new Mailto();
Trying to automatically unpublish content based on CCK date field, Rules and PHP field values
I am building a web site using Drupal 6.12 (plus the most recent stable releases of token, CCK, Rules and views) and am trying to create a rule that automatically unpublishes content based on the cck date field (generated by the Date API 'date' sub-module).
Read morePDXPHP Kickoff Meeting for Open Source Bridge featuring Rasmus Lerdorf
Rasmus Lerdorf will be in town for Open Source Bridge and has graciously offered to lead a meeting for PDXPHP. So the Tuesday before the OSBridge festivities kick off, He (and possible a few other speakers in town), will lead a discussion on various PHP and web topics.
Rasmus is of course know for creating the PHP language but is also an expert in application security, and is currently employed with Yahoo as an Infrastructure Architecture Engineer, so there will be no shortage of interesting topics for this meeting.
Reunión PHP Perú esta tarde
Hola,
Me olvidé de mencionarlo hasta ahora que lo estoy preparando, pero esta tarde tenemos la reunión bi-mensual de PHP Perú en las oficinas de Dokeos, para los que tienen demasiado energía. Estaremos creando pruebas para el lenguaje PHP mismo (versión 5.3) y estaré explicando lo que es phing y como usarlo.
Yannick
Read moreView 2 Filters: Criteria defined by PHP scripts?
Hi
Can a PHP script be assigned as a Filter criteria when one is within View Edit UI /admin/build/views/edit
?
Or even establish a filter to be used by a view via some view hook()
?
Thanks
Jeff in Seattle
Read more