Skip to content

Instantly share code, notes, and snippets.

@DuaelFr
Created May 5, 2013 18:05
Show Gist options
  • Save DuaelFr/5521602 to your computer and use it in GitHub Desktop.
Save DuaelFr/5521602 to your computer and use it in GitHub Desktop.
Waiting for Reply's Features integration
<?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