You are here

function _flag_link_type_options in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.module \_flag_link_type_options()
  2. 6 flag.module \_flag_link_type_options()
  3. 7.3 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_views_tables in includes/flag.views.inc
Implementation of hook_views_tables

File

./flag.module, line 824
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;
}