function theme_options

cis7 theme_options($variables)
cle7 theme_options($variables)
elmsmedia7 theme_options($variables)
icor7 theme_options($variables)
meedjum_blog7 theme_options($variables)
mooc7 theme_options($variables)

Theme an options element.

14 theme calls to theme_options()
l in includes/
Formats an internal or external URL link as an HTML anchor tag.
theme_custom_formatters_export_ui_form_preview in sites/all/modules/local_contrib/custom_formatters/plugins/export_ui/
Theme for Preview form.
views_content_views_row_content_type_render in sites/all/modules/ulmus/ctools/views_content/plugins/content_types/
Render the node_terms content type.
views_plugin_row::render in sites/all/modules/ulmus/views/plugins/
Render a row object. This usually passes through to a theme template of some form, but not always.
views_plugin_row_aggregator_rss::render in sites/all/modules/ulmus/views/modules/aggregator/
Render a row object. This usually passes through to a theme template of some form, but not always.

... See full list

360 string references to the theme hook from theme_options()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

accessibility_content_init in sites/all/modules/ulmus/accessibility/modules/accessibility_content/
accessibility_reporting_views_default_views in sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/
adaptivetheme_drush_command in sites/all/themes/ulmus/adaptivetheme/at_core/
Implementation of hook_drush_command().
adaptivetheme_five_5x20_panels_layouts in sites/all/themes/ulmus/adaptivetheme/at_core/layouts/panels/five_5x20/
adaptivetheme_four_4x25_panels_layouts in sites/all/themes/ulmus/adaptivetheme/at_core/layouts/panels/four_4x25/
@file Implementation of hook_panels_layouts

... See full list


sites/all/modules/ulmus/options_element/, line 12
All logic for options_element form elements.


function theme_options($variables) {
  $element = $variables['element'];

  element_set_attributes($element, array('id'));
  _form_set_class($element, array('form-options'));

  $classes = &$element['#attributes']['class'];
  $classes[] = 'options-key-type-' . $element['#key_type'];

  if ($element['#key_type_toggled']) {
    $classes[] = 'options-key-custom';

  if (isset($element['#optgroups']) && $element['#optgroups']) {
    $classes[] = 'options-optgroups';

  if (isset($element['#multiple']) && $element['#multiple']) {
    $classes[] = 'options-multiple';

  // Replace the error class from wrapper div, which doesn't display well with
  // complex elements like Options Element.
  if ($key = array_search('error', $classes, TRUE)) {
    $classes[$key] = 'options-error';

  $options = '';
  $options .= drupal_render($element['options_field']);
  if (isset($element['default_value_field'])) {
    $options .= drupal_render($element['default_value_field']);
  if (isset($element['default_value_pattern'])) {
    $options .= drupal_render($element['default_value_pattern']);

  $settings = '';
  if (isset($element['custom_keys'])) {
    $settings .= drupal_render($element['custom_keys']);
  if (isset($element['multiple'])) {
    $settings .= drupal_render($element['multiple']);
  if (isset($element['option_settings'])) {
    $settings .= drupal_render($element['option_settings']);

  $output = '';
  $output .= '<div' . drupal_attributes($element['#attributes']) . '>';
  $output .= theme('container', array('element' => array(
    '#title' => t('Options'),
    '#collapsible' => FALSE,
    '#children' => $options,
    '#attributes' => array('class' => array('options')),

  if (!empty($settings)) {
    $output .= theme('fieldset', array('element' => array(
      '#title' => t('Option settings'),
      '#collapsible' => FALSE,
      '#children' => $settings,
      '#attributes' => array('class' => array('option-settings')),
  $output .= '</div>';

  return $output;



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.