DrupalBin
Submit Code
About
Recent Posts
message i get when running openssl s_client -connect 150.203.86.21:443
Fix for Code
Code
add_to_cart_by_sku_contents()
Fix for page.tpl.php
Page.tpl
foreach is beeing disregarded dispite variable is array. Please help. Outside Drupal it works as standalone.php file
foreach is beeing disregarded dispite variable is array inside drupal. Please help. Outside Drupal it works as standalone.php
Fix for filefield implementation in an admin page. "An HTTP error 0 occurred. /drupal/?q=filefield/ahah///"
PHP Code custom.module
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
menu
active menu title
December 13, 2011 - 8:09am — Anonymous
<?php
$menuParent
=
menu_get_active_trail
(
)
;
if
(
isset
(
$menuParent
[
1
]
[
'link_title'
]
)
)
{
?>
<h2 class="section-heading">
<?php
$menuParent
=
$menuParent
[
1
]
[
'link_title'
]
;
print_r
(
$menuPare
active
menu
title
Read more
Get parent menu item
December 7, 2011 - 6:33am — Anonymous
$menuParent
=
menu_get_active_trail
(
)
;
//Since it returns an array, make sure to target what you are looking for
//You should print_r what menu_get_active_trail() to see what else it gives you
$men
link
menu
Read more
Printing system menu
November 10, 2011 - 5:04pm —
dv8withn8
<?php
if
(
$main_menu
)
:
?>
<?php
print
theme
(
'links__system_main_menu'
,
array
(
'links'
=>
$main_menu
,
'attributes'
=>
array
(
'id'
=>
'main-menu'
,
'class'
=>
array
(
'links'
,
'inline'
,
'clearfix'
menu
Read more
Fix for Trying to add '<span>' tag to the menu
September 23, 2011 - 8:41am — Anonymous
function
theme_menu_link
(
array
$variables
)
{
$element
=
$variables
[
'element'
]
;
$sub_menu
=
''
;
if
(
$element
[
'#below'
]
)
{
$sub_menu
=
drupal_render
(
$element
[
'#below'
]
)
;
}
$tit
menu
Read more
Trying to add '<span>' tag to the menu
September 23, 2011 - 8:32am — Anonymous
function
theme_menu_link
(
array
$variables
)
{
$element
=
$variables
[
'element'
]
;
$sub_menu
=
''
;
if
(
$element
[
'#below'
]
)
{
$sub_menu
=
drupal_render
(
$element
[
'#below'
]
)
;
}
$tit
menu
Read more
Fix for white screen in Drupal 6
June 14, 2011 - 5:24am — Anonymous
/**
* Implementation of hook_menu().
*/
function
letters_menu
(
$may_cache
)
{
$items
=
array
(
)
;
$items
[
'letter'
]
=
array
(
'path'
=
>
,
'title'
=
>
t
(
'Write a letter to the editor'
)
,
menu
Read more
Re:
September 25, 2010 - 3:55pm — Anonymous
People in every country take the
<
a href=
"http://bestfinance-blog.com/topics/mortgage-loans"
>
mortgage loans
</
a
>
in various creditors, because that is comfortable and fast.
expanded
menu
Wrap links in span tags
August 13, 2010 - 3:58pm — Anonymous
function
THEMENAME_links
(
$links
,
$attributes
=
array
(
'class'
=
>
'links'
)
)
{
global
$language
;
$output
=
''
;
if
(
isset
(
$attributes
[
'add_span'
]
)
)
{
$span_class
=
$attributes
[
'add_span'
]
;
menu
menu links
span
Read more
Fix for expanded menu overide for set MID - needs to collapse MID properly when not ative
June 25, 2010 - 10:14am — Anonymous
/**
* Implementation of theme_menu_item().
* Add active class and custom id to current menu item links.
*/
function
zen_menu_item
(
$mid
,
$children
=
''
,
$leaf
=
TRUE
)
{
// store a list of the me
expanded
menu
Read more
expanded menu overide for set MID - needs to collapse MID properly when not ative
June 25, 2010 - 9:15am — Anonymous
/**
* Implementation of theme_menu_item().
* Add active class and custom id to current menu item links.
*/
function
zen_menu_item
(
$mid
,
$children
=
''
,
$leaf
=
TRUE
)
{
// store a list of the me
expanded
menu
Read more
1
2
3
4
5
6
7
next ›
last »