You are here

function flagactivity_activity_info in Activity 6

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

Activity definition file

This defines what hooks activity module should use

File

contrib/flagactivity/flagactivity.module, line 8

Code

function flagactivity_activity_info() {
  $types = flag_get_flags();
  foreach ($types as $type) {
    $token_types[$type->name] = $type->title;
  }
  return array(
    'ops' => array(
      'flag' => t('Flag'),
      'unflag' => t('Unflag'),
    ),
    'types' => $token_types,
    'roles' => array(
      'author' => array(
        '#name' => t('Author'),
        '#description' => t('The person who flagged the node.'),
        '#default' => t('[author] [operation]ged the [content-type] [content-link]'),
      ),
      'all' => array(
        '#name' => t('All'),
        '#description' => t('The general public.'),
        '#default' => t('[author-all] [operation]ged the [content-type] [content-link]'),
      ),
    ),
  );
}