You are here

function commentactivity_activity_info in Activity 5.3

Same name and namespace in other branches
  1. 5.4 contrib/commentactivity/commentactivity.module \commentactivity_activity_info()
  2. 6 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' => 'You left the comment [subject] on [parent-node]',
      ),
      'parent_node_author' => array(
        '#name' => t('Parent node author'),
        '#description' => t('The person who created the node.'),
        '#default' => '[author] commented on [parent-node]',
      ),
      'parent_comment_author' => array(
        '#name' => t('Parent comment author'),
        '#description' => t('The person who wrote the comment.'),
        '#default' => '[author] replied to your comment [parent-comment] with [subject]',
      ),
      // This is what corresponds to ACTIVITY_ALL
      'all' => array(
        '#name' => t('All'),
        '#description' => t('The general public.'),
        '#default' => '[author] commented on [parent-node] saying [subject]',
      ),
    ),
  );
}