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
custom module
Module for feature Block
November 16, 2011 - 9:01pm — Anonymous
<?php
/**
* Implements hook_block_info().
*/
function
feature_block_info
(
)
{
$blocks
[
'feature'
]
=
array
(
'info'
=>
t
(
'Featured Content'
)
,
custom module
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
Theming node add form: filling automatically the field "menu link title" with the title of the node
March 5, 2011 - 11:00am — Anonymous
function
test_module_form_alter
(
&
$form
,
$form_state
,
$form_id
)
{
if
(
$form_id
==
'node-type_node_form'
)
{
$form
[
'menu'
]
[
'link_title'
]
[
'#default_value'
]
=
$form
[
'title'
]
;
}
}
custom module
form_alter
Fix for Custom Company Info for Theming
February 18, 2011 - 4:16pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Fix for Custom Company Info for Theming
February 18, 2011 - 4:07pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Custom Company Info for Theming
February 18, 2011 - 4:06pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Fix for Simple code to load default views
June 16, 2010 - 9:46am — Anonymous
/**
* Implementation of hook_views_default_views().
*/
function
mymodule_views_default_views
(
)
{
$views
=
array
(
)
;
$files
=
file_scan_directory
(
drupal_get_path
(
'module'
,
'mymodule'
)
.
'/v
custom module
exportables
views
Read more
Simple code to load default views
June 16, 2010 - 9:45am — Anonymous
/**
* Implementation of hook_views_default_views().
*/
function
mt_views_default_views
(
)
{
$views
=
array
(
)
;
$files
=
file_scan_directory
(
drupal_get_path
(
'module'
,
'mymodule'
)
.
'/views'
,
custom module
exportables
views
Read more
How to printout $output in drupal!
May 16, 2009 - 1:28pm — Anonymous
<?php
function
test_perm
(
)
{
return
array
(
'administer custom test block'
)
;
}
function
test_menu
(
)
{
$items
=
array
(
)
;
$items
[
'user/%/test/read'
]
=
array
(
'title'
=
>
'Read'
,
custom module
Read more
1
2
next ›
last »