You are here

function _flag_link_type_options in Flag 7.3

Same name and namespace in other branches
  1. 5 flag.module \_flag_link_type_options()
  2. 6.2 flag.module \_flag_link_type_options()
  3. 6 flag.module \_flag_link_type_options()
  4. 7.2 flag.module \_flag_link_type_options()

Return an array of flag link types suitable for a select list or radios.

2 calls to _flag_link_type_options()
flag_form in includes/flag.admin.inc
Add/Edit flag page.
flag_handler_field_ops::options_form in includes/views/flag_handler_field_ops.inc
Default options form provides the label widget that all fields should have.

File

./flag.module, line 1680
The Flag module.

Code

function _flag_link_type_options() {
  $options = array();
  $types = flag_get_link_types();
  foreach ($types as $type_name => $type) {
    $options[$type_name] = $type['title'];
  }
  return $options;
}