-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Annotated commands tests for Drupal 6.
- Loading branch information
1 parent
84af0d3
commit 8acb695
Showing
4 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
WootCommands.php |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name = woot | ||
description = Woot Mightily | ||
core = 6.x | ||
files[] = woot.module |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/** | ||
* Implements hook_menu | ||
*/ | ||
function woot_menu() { | ||
$items = array(); | ||
|
||
$items['woot'] = array( | ||
'title' => 'Woot', | ||
'description' => 'Woot mightily.', | ||
'page callback' => 'woot_page', | ||
'access callback' => TRUE, | ||
'type' => MENU_CALLBACK, | ||
); | ||
|
||
return $items; | ||
} | ||
|
||
function woot_page() { | ||
return array('#markup' => 'Woot!'); | ||
} |