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
Fix for Code
View
Fix
February 16, 2010 - 10:30am — Anonymous
SELECT
node.nid
AS
nid
,
node_data_field_imagen_principal.field_imagen_principal_fid
AS
node_data_field_imagen_principal_field_imagen_principal_fid
,
node_data_field_imagen_principal.field_imagen_principal_list
AS
node_data_field_imagen_principal_field_imagen_principal_list
,
node_data_field_imagen_principal.field_imagen_principal_data
AS
node_data_field_imagen_principal_field_imagen_principal_data
,
node.
type
AS
node_type
,
node.vid
AS
node_vid
,
node.title
AS
node_title
,
node_revisions.teaser
AS
node_revisions_teaser
,
node_revisions.
format
AS
node_revisions_format
,
node.created
AS
node_created
,
node_comment_statistics.comment_count
AS
node_comment_statistics_comment_count
FROM
node node
LEFT
JOIN
nodequeue_nodes nodequeue_nodes_node
ON
node.nid
=
nodequeue_nodes_node.nid
AND
nodequeue_nodes_node.qid
=
15
INNER
JOIN
term_node term_node
ON
node.vid
=
term_node.vid
LEFT
JOIN
nodequeue_subqueue nodequeue_nodes_node__nodequeue_subqueue
ON
nodequeue_nodes_node.sqid
=
nodequeue_nodes_node__nodequeue_subqueue.sqid
LEFT
JOIN
content_field_imagen_principal node_data_field_imagen_principal
ON
node.vid
=
node_data_field_imagen_principal.vid
LEFT
JOIN
node_revisions node_revisions
ON
node.vid
=
node_revisions.vid
INNER
JOIN
node_comment_statistics node_comment_statistics
ON
node.nid
=
node_comment_statistics.nid
WHERE
(
node.
status
<>
0
OR
(
node.uid
=
***
CURRENT_USER
***
AND
***
CURRENT_USER
***
<>
0
)
OR
***
ADMINISTER_NODES
***
=
1
)
AND
(
node.
type
not
in
(
'poll'
,
'hobby
_
gallery'
)
)
AND
(
nodequeue_nodes_node.nid
IS
NULL
)
AND
(
term_node.tid
=
4
)
AND
(
nodequeue_nodes_node__nodequeue_subqueue.reference
=
'4'
)
ORDER BY
node_created
DESC
nodereference
views
Submit Fix
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Show summary in full view
SELECT node.nid AS nid, node_data_field_imagen_principal.field_imagen_principal_fid AS node_data_field_imagen_principal_field_imagen_principal_fid, node_data_field_imagen_principal.field_imagen_principal_list AS node_data_field_imagen_principal_field_imagen_principal_list, node_data_field_imagen_principal.field_imagen_principal_data AS node_data_field_imagen_principal_field_imagen_principal_data, node.type AS node_type, node.vid AS node_vid, node.title AS node_title, node_revisions.teaser AS node_revisions_teaser, node_revisions.format AS node_revisions_format, node.created AS node_created, node_comment_statistics.comment_count AS node_comment_statistics_comment_count FROM node node LEFT JOIN nodequeue_nodes nodequeue_nodes_node ON node.nid = nodequeue_nodes_node.nid AND nodequeue_nodes_node.qid = 15 INNER JOIN term_node term_node ON node.vid = term_node.vid LEFT JOIN nodequeue_subqueue nodequeue_nodes_node__nodequeue_subqueue ON nodequeue_nodes_node.sqid = nodequeue_nodes_node__nodequeue_subqueue.sqid LEFT JOIN content_field_imagen_principal node_data_field_imagen_principal ON node.vid = node_data_field_imagen_principal.vid LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid INNER JOIN node_comment_statistics node_comment_statistics ON node.nid = node_comment_statistics.nid WHERE (node.status <> 0 OR (node.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0) OR ***ADMINISTER_NODES*** = 1) AND (node.type not in ('poll', 'hobby_gallery')) AND (nodequeue_nodes_node.nid IS NULL) AND (term_node.tid = 4) AND (nodequeue_nodes_node__nodequeue_subqueue.reference = '4') ORDER BY node_created DESC
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal 5
Drupal 6
HTML
INI
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.
See Also:
Order
Title:
URL:
-1
0
1
Title:
URL:
-1
0
1
Any links you'd like to have associated with the post (Drupal.org issue, Wikipedia article, etc).
File attachments
Changes made to the attachments are not permanent until you save this post. The first "listed" file will be included in RSS feeds.
Attach new file:
The maximum upload size is
1 MB
. Only files with the following extensions may be uploaded:
jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp phps
.