function ctools_get_roles

cis7 ctools.module ctools_get_roles()
cle7 ctools.module ctools_get_roles()
elmsmedia7 ctools.module ctools_get_roles()
icor7 ctools.module ctools_get_roles()
meedjum_blog7 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.


user_roles() should be used instead.

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


sites/all/modules/ulmus/ctools/ctools.module, line 252
CTools primary module file.


function ctools_get_roles() {
  return user_roles();



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.