You are here

function user_colors_info in Colors 7

Implements hook_colors_info().

File

includes/user.colors.inc, line 11
Provides Color integration on behalf of user.module.

Code

function user_colors_info() {
  return array(
    'user_role' => array(
      'title' => 'User role',
      'short_description' => t('Enable colors for user role'),
      'long_description' => t('Colors for user roles. If enabled, you may set colors for each user role below.'),
      'function' => 'user_roles',
    ),
    'user_current' => array(
      'title' => 'Current user',
      'short_description' => t('Enable a color for the current user'),
      'long_description' => t('A color for the current user. If enabled, you may set one color for items the current user has authored.'),
      'function' => '_user_current',
    ),
    'users' => array(
      'title' => 'Users',
      'short_description' => t('Enable colors for each user'),
      'long_description' => t('Colors for users. If enabled, you may set colors for each user below.'),
      'function' => '_colors_users',
    ),
  );
}