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
block
Fix for Fix for block theme
January 4, 2012 - 12:54pm — Anonymous
/**
* Implements hook_theme().
*/
function
mymodule_theme
(
)
{
return
array
(
'myblock'
=
>
array
(
// este es el nombre del theme_hook que se remplaza por theme_myblock
'argument'
=
>
block
Read more
Fix for block theme
January 4, 2012 - 12:40pm — Anonymous
/**
* Implements hook_theme().
*/
function
mymodule_theme
(
)
{
return
array
(
'myblock'
=
>
array
(
'argument'
=
>
array
(
'text'
=
>
NULL
,
'origin'
=
>
NULL
)
,
)
)
;
}
/**
*
block
Read more
block theme
January 4, 2012 - 12:40pm — Anonymous
/**
* Implements hook_theme().
*/
function
mymodule_theme
(
)
{
return
array
(
'myblock'
=
>
array
(
'argument'
=
>
array
(
'text'
=
>
NULL
,
'origin'
=
>
NULL
)
,
)
)
;
}
/**
*
block
Read more
Trying to display a custom view inside of a block
August 24, 2011 - 5:34pm — Anonymous
<
div
id
=
"tabbed-box"
>
<
ul
class
=
"tabs"
>
<
li
><
a
href
=
"#"
class
=
"current"
>
Popular
<
/
a
><
/
li
>
<
li
><
a
href
=
"#"
class
=
""
>
Comments
<
/
a
><
/
li
>
<
li
><
a
href
=
"#"
class
=
""
>
Tags
<
/
a
><
block
embed
views
Read more
Fix for this custom module to show a block does not show a block :)
June 13, 2011 - 2:08am — Anonymous
<?php
// $Id: my_module.module
/**
* @file
* Custom functions for this site.
*/
/**
* Implementation of hook_block().
* Adds a block that has new text.
*/
function
new_block
(
$op
=
'lis
block
custom module
Read more
this custom module to show a block does not show a block :)
June 12, 2011 - 11:14am — Anonymous
<?php
// $Id: my_module.module
/**
* @file
* Custom functions for this site.
*/
/**
* Implementation of hook_block().
* Adds a block that has new text.
*/
function
new_block
(
$op
=
'lis
block
custom module
Read more
block node visibility
August 10, 2010 - 3:34pm — Anonymous
<?php
if
(
arg
(
0
)
==
'user'
&&
arg
(
1
)
==
$user
-
>
uid
)
{
return
true
;
}
?>
arguments
block
php
visibility
Fix for Back Button Block
June 25, 2010 - 9:42am — Anonymous
<?php
function
back_button_block
(
$op
=
'list'
,
$delta
=
''
,
$edit
=
array
(
)
)
{
switch
(
$op
)
{
case
'list'
:
$blocks
[
'back'
]
=
array
(
'info'
=
>
t
(
'A simple back-button'
)
,
back
block
Read more
Back Button Block
June 25, 2010 - 9:30am — Anonymous
<?php
function
back_button_block
(
$op
=
'list'
,
$delta
=
''
,
$edit
=
array
(
)
)
{
switch
(
$op
)
{
case
'list'
:
$blocks
[
'back'
]
=
array
(
'info'
=
>
t
(
'A simple back-button'
)
,
back
block
Read more
Output of drupal_render
June 18, 2010 - 3:07am — Anonymous
<
div
class
=
"form-item"
>
<
label
>
Rol:
</
label
>
<
div
class
=
"form-radios"
></
div
>
</
div
>
<
div
class
=
"form-item"
>
<
label
>
Projectfase:
</
label
>
<
div
class
=
"form-checkboxes"
></
div
>
</
div
>
<
div cla
block
drupal_render
Form API
Read more
1
2
3
next ›
last »