You are here

function ogactivity_activity_info in Activity 6

Same name and namespace in other branches
  1. 5.4 contrib/ogactivity/ogactivity.module \ogactivity_activity_info()

Activity definition file

This defines what hooks activity module should use

File

contrib/ogactivity/ogactivity.module, line 8

Code

function ogactivity_activity_info() {
  return array(
    'ops' => array(
      'join' => t('Join'),
      'leave' => t('Leave'),
    ),
    'types' => array(
      'ogaction' => t('Group Action'),
    ),
    'roles' => array(
      'author' => array(
        '#name' => t('Author'),
        '#description' => t('The person who joined or left a group.'),
        '#default' => array(
          'join' => '[author] joined the [node-link] group',
          'leave' => '[author] left the [node-link] group',
        ),
      ),
      // This is what corresponds to ACTIVITY_ALL
      'all' => array(
        '#name' => t('All'),
        '#description' => t('The general public.'),
        '#default' => array(
          'join' => '[author-all] joined the [node-link] group',
          'leave' => '[author-all] left the [node-link] group',
        ),
      ),
    ),
  );
}