function ctools_get_roles

nittany7 ctools.module ctools_get_roles()
cis7 ctools.module ctools_get_roles()
mooc7 ctools.module ctools_get_roles()

Get a list of roles in the system.

Return value

An array of role names keyed by role ID.

Deprecated

user_roles() should be used instead.

4 calls to ctools_get_roles()
ctools_plugin_example_example_role_ctools_access_settings in modules/contrib/ctools/ctools_plugin_example/plugins/access/example_role.inc
Settings form for the 'by role' access plugin.
ctools_plugin_example_example_role_ctools_access_summary in modules/contrib/ctools/ctools_plugin_example/plugins/access/example_role.inc
Provide a summary description based upon the checked roles.
ctools_role_ctools_access_settings in modules/contrib/ctools/plugins/access/role.inc
Settings form for the 'by role' access plugin
ctools_role_ctools_access_summary in modules/contrib/ctools/plugins/access/role.inc
Provide a summary description based upon the checked roles.

File

modules/contrib/ctools/ctools.module, line 252
CTools primary module file.

Code

function ctools_get_roles() {
  return user_roles();
}