DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for 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
links
Re:
June 6, 2011 - 11:24am — Anonymous
freelance writer
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Fix for Add Preious/Next Link
February 12, 2010 - 6:07pm — Anonymous
<h3>mytheme_preprocess_node(){}</h3>
<?php
function
myTheme_preprocess_node
(
&
$vars
,
$hook
)
{
switch
(
$vars
[
'node'
]
-
>
type
)
{
case
'nodeType'
:
if
(
$vars
[
'node'
]
-
>
body
)
{
$resultn
=
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Read more
Add Preious/Next Link
February 6, 2010 - 11:21am — Anonymous
<h3>mytheme_preprocess_node(){}</h3>
<?php
function
myTheme_preprocess_node
(
&
$vars
,
$hook
)
{
switch
(
$vars
[
'node'
]
-
>
type
)
{
case
'nodeType'
:
if
(
$vars
[
'node'
]
-
>
body
)
{
$resultn
=
custom
links
next
node.tpl.php
Nodel
page.tpl.php
previous
Read more
Open any link in new tab
April 27, 2009 - 3:37pm — Anonymous
if
(
Drupal.
jsEnabled
)
{
$
(
"a.yourlinkclass"
)
.
each
(
function
(
)
{
if
(
this
.
href
.
indexOf
(
location.
hostname
)
==
-
1
)
{
$
(
this
)
.
click
(
function
(
)
{
window.
open
(
this
.
href
)
;
return
false
;
}
)
;
}
}
)
;
}
jquery
links
tabs
Is there a better way of returning the active menu in primary links?
November 16, 2008 - 7:06am — Anonymous
/*
* Current active primary link
*/
function
return_active_primary_link
(
)
{
$primary_links
=
menu_primary_links
(
)
;
foreach
(
$primary_links
as
$key
=
>
$value
)
{
active
links
menu
primary
trail
Read more
Fix for Open external links in new window
November 7, 2008 - 7:53am — Anonymous
$
(
document
)
.
ready
(
function
(
)
{
$
(
"a[href^='http://']"
)
.
click
(
function
(
)
{
window.
open
(
$
(
this
)
.
href
)
;
return
false
;
}
)
;
}
)
;
external
links
Open external links in new window
November 7, 2008 - 7:48am — Anonymous
$
(
document
)
.
ready
(
)
{
$
(
"a[href^='http://']"
)
.
click
(
function
(
)
{
window.
open
(
$
(
this
)
.
href
)
;
return
false
;
}
)
;
}
external
links