DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
xml
format_xml_elements usage
September 16, 2011 - 3:52pm — Anonymous
/**
* Return expected Mindtouch XML format containing user details.
*/
function
mindtouch_remote_auth_format_xml
(
$mindtouch_user
)
{
$elements
=
format_xml_elements
(
array
(
'email'
=
>
$mindtouch_
module development
xml
Read more
Fix for Fix for QueryPath for removing an XML item
November 6, 2009 - 4:41pm — Anonymous
function
mymodule_update_languages_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
// Find only items that have id=
drupal
querypath
xml
Read more
Fix for QueryPath for removing an XML item
November 5, 2009 - 5:39pm — Anonymous
function
mymodule_update_languages_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
$qp
-
>
find
(
'languageList'
)
-
>
find
(
drupal
querypath
xml
Read more
QueryPath for removing an XML item
November 5, 2009 - 5:38pm — Anonymous
function
mymodule_add_language_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
$qp
-
>
find
(
'languageList'
)
-
>
find
(
'ite
drupal
querypath
xml
Read more
Fix for xml_parser improvements
September 23, 2009 - 4:57am — Anonymous
<?php
// $Id
/**
* This function receives the path to an XML document and
* returns the contents of the document as a string.
*
* @param $file
* (string) The system path to an XML fil
6.x
drupal
module
xml
Read more
xml_parser module, example of use
September 23, 2009 - 4:51am — Anonymous
<?php
function
drivingforce_import_init
(
)
{
tester
(
)
;
}
function
tester
(
)
{
$files
=
file_scan_directory
(
variable_get
(
'drivingforce_import_xml_files'
,
''
)
,
'.*.xml'
,
array
(
'.'
,
'..'
,
'CVS'
)
6.x
drupal
example
module
xml
Read more
xml_parser improvements
September 23, 2009 - 4:48am — Anonymous
<?php
// $Id
/**
* Function receives the path to an XML document and returns
* the contents of the document as a string.
*
* @param $file
* (string) The system path to an XML file.
*
6.x
drupal
module
xml
Read more
quiz xml
June 22, 2009 - 12:19pm — Anonymous
<
quiz
>
<
authorName
>
admin
</
authorName
>
<
authorId
>
1
</
authorId
>
<
title
>
Sample Quiz
</
title
>
<
description
>
Just a Sample Quiz.
</
description
>
<
nodeId
>
1
</
nodeId
>
<
createDate
>
1244401610
</
createDate
>
<
la
querypath
quiz
xml
Read more
getDOM
July 29, 2008 - 6:56pm —
Rob Loach
function
getDOM
(
$url
)
{
$ch
=
curl_init
(
)
;
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
)
;
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
)
;
curl_setopt
(
$ch
,
CURLOPT_TIMEOUT
,
10
)
;
DOM
SimpleXML
xml
Read more
scrape it up
July 16, 2008 - 7:26pm — Anonymous
$xml
= simple_get_xml
(
'http://www.cotrip.org/atis/web.TraveltimeMarshal'
)
;
$table
=
$xml
-
>
xpath
(
'/html/body/table[3]'
)
;
foreach
(
$table
[
0
]
-
>
tr
as
$item
)
{
if
(
count
(
$item
)
==
1
)
{
scraper
SimpleXML
xml
Read more