You are here

function fasttoggle_get_user_role_option_value in Fasttoggle 7

Same name and namespace in other branches
  1. 6 fasttoggle.module \fasttoggle_get_user_role_option_value()

Get whether a role is assigned.

Parameters

array $options: The array of options (unused).

string $group: The group of settings.

string $option: The particular option (role).

object $object: The user object to check.

Return value

int Whether the role is assigned to this user.

1 string reference to 'fasttoggle_get_user_role_option_value'
fasttoggle_user_fasttoggle_available_links in module/fasttoggle_user/fasttoggle_user.module
Implements hook_fasttoggle_available_links().

File

module/fasttoggle_user/fasttoggle_user.module, line 158

Code

function fasttoggle_get_user_role_option_value(array $options, $group, $option, $object) {
  return intval(isset($object->roles[$option]));
}