You are here

function fasttoggle_get_options in Fasttoggle 6

Same name and namespace in other branches
  1. 5 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.

8 calls to fasttoggle_get_options()
fasttoggle_comment_option in ./fasttoggle.toggle.inc
Menu callback. Toggle options for a comment if the action is confirmed via POST. Otherwise, display a confirmation form.
fasttoggle_link in ./fasttoggle.module
Implementation of hook_link().
fasttoggle_menu_contextual_links_alter in ./fasttoggle.module
fasttoggle_node_option in ./fasttoggle.toggle.inc
Menu callback. Toggle options for a node if the action is confirmed via POST. Otherwise, display a confirmation form.
fasttoggle_user_option in ./fasttoggle.toggle.inc
Menu callback. Toggle the status of a user if the action is confirmed via POST. Otherwise, display a confirmation form.

... See full list

File

./fasttoggle.module, line 227
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);
}