Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function custom_giggity_block_info(){
- $block['custom_giggity'] = array(
- 'info' => t('Custom giggity'),
- 'cache' => DRUPAL_NO_CACHE,
- );
- return $block;
- }
- function custom_giggity_block_view($delta = ''){
- $block = array();
- if($delta == 'custom_giggity'){
- $block['content'] = custom_giggity_contents($delta);
- }
- return $block;
- }
- function custom_giggity_contents($delta){
- //Code that generates what goes into $block['content']
- return $output;
- }
- function giggity_contents() {
- $items['giggity'] = array(
- 'title' => "Giggity",
- 'page callback' => "show_giggity", //or custom_giggity_contents ;)
- 'access arguments' => array('access content'),
- 'file' => 'giggity.inc',
- 'type' => MENU_CALLBACK
- );
- return $items;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement