You are here

function _site_map_set_option in Site map 7

Sets options based on admin input parameters for redering.

@codingStandardsIgnoreStart

Parameters

array $options: The array of options to the site map theme.

string $option_string: The string index given from the admin form to match.

int $get_param: Parameter number.

int $equal_param: Result of param test, 0 or 1.

string $set_string: Index of option to set, or the option name.

bool $set_value: The option, on or off, or strings or ints for other options.

9 calls to _site_map_set_option()
_site_map_audio in ./site_map.module
Render the latest maps for audio.
_site_map_blogs in ./site_map.module
Render the latest blogs.
_site_map_books in ./site_map.module
Render the latest maps for books.
_site_map_faq in ./site_map.module
Render the latest maps for faq.
_site_map_front_page in ./site_map.module
Menu callback for the site map front page.

... See full list

File

./site_map.module, line 880
site_map.module

Code

function _site_map_set_option(&$options, $option_string, $get_param, $equal_param, $set_string, $set_value) {

  // @codingStandardsIgnoreEnd
  if (variable_get($option_string, $get_param) == $equal_param) {
    $options[$set_string] = $set_value;
  }
}