function ctools_plugin_example_example_role_ctools_access_settings

cis7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)
cle7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)
elmsmedia7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)
icor7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)
meedjum_blog7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)
mooc7 example_role.inc ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf)

Settings form for the 'by role' access plugin.

1 string reference to 'ctools_plugin_example_example_role_ctools_access_settings'
example_role.inc in sites/all/modules/ulmus/ctools/ctools_plugin_example/plugins/access/example_role.inc
Plugin to provide access control based upon role membership. This is directly from the ctools module, but serves as a good example of an access plugin

File

sites/all/modules/ulmus/ctools/ctools_plugin_example/plugins/access/example_role.inc, line 27
Plugin to provide access control based upon role membership. This is directly from the ctools module, but serves as a good example of an access plugin

Code

function ctools_plugin_example_example_role_ctools_access_settings(&$form, &$form_state, $conf) {
  $form['settings']['rids'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Role'),
    '#default_value' => $conf['rids'],
    '#options' => ctools_get_roles(),
    '#description' => t('Only the checked roles will be granted access.'),
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.