You are here

public static function linkit_profiles_ui::buildRoleList in Linkit 7.2

Build a list of all roles that is asssigned to a profile.

2 calls to linkit_profiles_ui::buildRoleList()
linkit_profiles_reorder in plugins/export_ui/linkit_profiles.inc
Form for reorder profiles.
linkit_profiles_ui::list_build_row in plugins/export_ui/linkit_profiles_ui.class.php
Build a row based on the item.

File

plugins/export_ui/linkit_profiles_ui.class.php, line 65
Class that extends the regular ctools export ui.

Class

linkit_profiles_ui
Base class for export UI.

Code

public static function buildRoleList($rids) {
  $list = array();
  foreach ($rids as $rid => $value) {
    $role = user_role_load($rid);
    $list[] = $role->name;
  }
  return implode(', ', $list);
}