diff --git a/README.txt b/README.txt index dde38f6..33f4ce2 100644 --- a/README.txt +++ b/README.txt @@ -21,7 +21,7 @@ Replies from users are administered in a content tab (similar to the existing Co Frequently Asked Questions: Q) How can I show author names on replies? -A) Override reply.tpl.php with a version that outputs $username, e.g. +A) Override reply.tpl.php with a version that outputs $username, e.g.
@@ -39,3 +39,9 @@ Q) Is there an easy way to return the reply count for a particular entity the re A) You can do the following: $instance = field_info_instance($entity_type, $field_name, $bundle_name); $count = count(reply_get_entity($entity_id, $entity_type, $instance['id'])); + +Q) Is there any panels integration in place? +A) Yes, there's a "Reply - Add form" content_type plugin under the 'Reply' category (inside the "add content" popup + of the Panels UI popup". It requires an entity context, but due to how contexts work, you can select any existing + context for the panel page being edited. Make sure the context chosen is one that return a loaded entity from the + system. \ No newline at end of file diff --git a/reply.module b/reply.module index 7fe7ed7..2090d2d 100644 --- a/reply.module +++ b/reply.module @@ -1866,3 +1866,12 @@ function _reply_get_login_url($destination) { function _reply_get_register_url($destination) { return url('user/register', array('query' => $destination)); } + +/** + * Implements hook_ctools_plugin_directory() + */ +function reply_ctools_plugin_directory($module, $plugin) { + if ($module == 'ctools') { + return 'plugins/' . $plugin; + } +}