-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
*/ | ||
|
||
/** | ||
* Implements hook_install(). | ||
*/ | ||
function stanford_soe_regions_install() { | ||
$context = new stdClass(); | ||
$context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ | ||
$context->api_version = 3; | ||
$context->name = 'full_width_super_hero'; | ||
$context->description = 'Context for full width super hero'; | ||
$context->tag = 'Full Width Super Hero'; | ||
$context->conditions = array(); | ||
$context->reactions = array(); | ||
$context->condition_mode = 0; | ||
context_save($context); | ||
} | ||
|
||
/** | ||
* Implements hook_enable(). | ||
*/ | ||
function stanford_soe_regions_enable() { | ||
/* | ||
*mymodule_cache_rebuild(); | ||
*/ | ||
/* Your code here */ | ||
} | ||
|
||
/** | ||
* Implements hook_disable(). | ||
*/ | ||
function stanford_soe_regions_disable() { | ||
/* | ||
*mymodule_cache_rebuild(); | ||
*/ | ||
/* Your code here */ | ||
} | ||
|
||
/** | ||
* Implements hook_uninstall(). | ||
*/ | ||
function stanford_soe_regions_uninstall() { | ||
$context_fwsh = context_load('full_width_super_hero'); | ||
context_delete($context_fwsh); | ||
} |