function views_flag_refresh_flag_options_get in Views Flag Refresh 7
Same name and namespace in other branches
- 6 views_flag_refresh.module \views_flag_refresh_flag_options_get()
Returns an array of flags keyed by machine readable name to an escaped display name.
Return value
array An array of options.
2 calls to views_flag_refresh_flag_options_get()
- views_flag_refresh_plugin_display_extender::options_form in ./
views_flag_refresh_plugin_display_extender.inc - Provide the form to set new option.
- views_flag_refresh_plugin_display_extender::options_summary in ./
views_flag_refresh_plugin_display_extender.inc - Summarizes new option.
File
- ./
views_flag_refresh.module, line 25 - Views Flag Refresh allows site administrators to configure which views are refreshed automatically via AJAX when certain flags are selected.
Code
function views_flag_refresh_flag_options_get() {
$options = array();
foreach (flag_get_flags() as $flag_id => $flag) {
$options[$flag_id] = check_plain($flag->title);
}
return $options;
}