You are here

function commentactivity_activity_info in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/commentactivity/commentactivity.module \commentactivity_activity_info()
  2. 5.3 contrib/commentactivity/commentactivity.module \commentactivity_activity_info()

Activity definition file

This defines what hooks activity module should use

File

contrib/commentactivity/commentactivity.module, line 8

Code

function commentactivity_activity_info() {
  return array(
    'ops' => array(
      'insert' => t('Insert'),
      'update' => t('Update'),
      'delete' => t('Delete'),
      'publish' => t('Publish'),
      'unpublish' => t('Unpublish'),
    ),
    'types' => array(
      'comment' => t('Comment'),
    ),
    'roles' => array(
      'author' => array(
        '#name' => t('Author'),
        '#description' => t('The person who created the comment.'),
        '#default' => t('[author] left the comment [comment-link] on the [parent-node-type] [parent-node-link]'),
      ),
      'parent_node_author' => array(
        '#name' => t('Parent node author'),
        '#description' => t('The person who created the node.'),
        '#default' => t('[author] commented on the [parent-node-type] [parent-node-link] saying [comment-link]'),
      ),
      'parent_comment_author' => array(
        '#name' => t('Parent comment author'),
        '#description' => t('The person who wrote the comment.'),
        '#default' => t('[author] replied to your comment [parent-comment-subject] saying [comment-link]'),
      ),
      // This is what corresponds to ACTIVITY_ALL
      'all' => array(
        '#name' => t('All'),
        '#description' => t('The general public.'),
        '#default' => t('[author-all] commented on the [parent-node-type] [parent-node-link] saying [comment-link]'),
      ),
    ),
  );
}