Created
June 13, 2012 23:00
-
-
Save suzannealdrich/2927052 to your computer and use it in GitHub Desktop.
Evanisko Custom Drupal Module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; $Id$ | |
name = Evanisko | |
description = Provides custom functionality for this site | |
core = 6.x | |
version = "6.x-1.x" | |
project = "evanisko" | |
package = Other |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// $Id$ | |
/* | |
* @file | |
* Drupal Module: evanisko | |
* Adds custom code specific to this Drupal 6 site. | |
*/ | |
/** | |
* Display help and module information | |
* @param path which path of the site we're displaying help | |
* @param arg array that holds the current path as would be returned from arg() function | |
* @return help text for the path | |
*/ | |
function evanisko_help($path, $arg) { | |
$output = ''; //declare your output variable | |
switch ($path) { | |
case "admin/help#evanisko": | |
$output = '<p>'. t("Custom module for evanisko site.") .'</p>'; | |
break; | |
} | |
return $output; | |
} // function evanisko_help | |
/** | |
* Valid permissions for this module | |
* @return array An array of valid permissions for the evanisko module | |
*/ | |
function evanisko_perm() { | |
return array('administer evanisko'); | |
} // function evanisko_perm() | |
/** | |
* Implementation of hook_menu(). | |
*/ | |
function evanisko_menu() { | |
$items['node'] = array( | |
'title' => 'Content', | |
'page callback' => 'node_page_default_evanisko', | |
'access arguments' => array('access content'), | |
'type' => MENU_CALLBACK, | |
); | |
return $items; | |
} | |
/** | |
* Menu Callback for 'node' front page item. | |
*/ | |
function node_page_default_evanisko() { | |
drupal_set_title(''); | |
return ''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment