function fasttoggle_get_options in Fasttoggle 5
Same name and namespace in other branches
- 6 fasttoggle.module \fasttoggle_get_options()
Return an array of toggleable options of the object and the name of each state.
Parameters
$type: The object type the functions should return options for (e.g. node, comment, ...).
...: Parameters for the fasttoggle_options hook.
6 calls to fasttoggle_get_options()
- fasttoggle_comment_option in ./
fasttoggle.module - Menu callback. Toggle options for a comment if the action is confirmed via POST. Otherwise, display a confirmation form.
- fasttoggle_handler_field in ./
fasttoggle.module - Views handler callback.
- fasttoggle_link in ./
fasttoggle.module - Implementation of hook_link().
- fasttoggle_menu in ./
fasttoggle.module - Implementation of hook_menu().
- fasttoggle_node_option in ./
fasttoggle.module - Menu callback. Toggle options for a node if the action is confirmed via POST. Otherwise, display a confirmation form.
File
- ./
fasttoggle.module, line 277 - Enables fast toggling of binary or not so binary settings
Code
function fasttoggle_get_options($type) {
$args = func_get_args();
array_unshift($args, 'fasttoggle_options');
return call_user_func_array('module_invoke_all', $args);
}