You are here

function flag_user::get_views_info in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_user::get_views_info()
  2. 6.2 flag.inc \flag_user::get_views_info()
  3. 7.3 includes/flag/flag_user.inc \flag_user::get_views_info()
  4. 7.2 flag.inc \flag_user::get_views_info()

File

./flag.inc, line 1198
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_user
Implements a user flag.

Code

function get_views_info() {
  return array(
    'views table' => 'users',
    'join field' => 'uid',
    'title field' => 'name',
    'title' => t('User flag'),
    'help' => t('Limit results to only those users flagged by a certain flag; Or display information about the flag set on a user.'),
    'counter title' => t('User flag counter'),
    'counter help' => t('Include this to gain access to the flag counter field.'),
  );
}