Created
May 5, 2013 18:05
-
-
Save DuaelFr/5521602 to your computer and use it in GitHub Desktop.
Waiting for Reply's Features integration
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 | |
/** | |
* @file | |
* Code for the Feature Content Timelines feature. | |
*/ | |
/** | |
* Implements hook_install(). | |
*/ | |
function feature_content_timelines_install() { | |
$bundle = new stdClass(); | |
$bundle->bundle = 'comments'; | |
$bundle->name = 'Comments'; | |
$bundle->description = 'Timeline comments'; | |
$bundle->access = REPLY_ACCESS_FULL; | |
$bundle->display = REPLY_LIST_FLAT; | |
$bundle->form = REPLY_FORM_PAGE_SAME; | |
$bundle->allow_reply = REPLY_DENY_REPLY; | |
$bundle->locked = REPLY_UNLOCKED; | |
reply_save_bundle($bundle); | |
} | |
/** | |
* Implements hook_uninstall(). | |
*/ | |
function feature_content_timelines_uninstall() { | |
reply_bundle_delete('comments'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment