You are here

function flag_lists_flag_default_flags in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_flag_default_flags()
  2. 7 flag_lists.module \flag_lists_flag_default_flags()
1 call to flag_lists_flag_default_flags()
flag_lists_create_template_form_submit in ./flag_lists.admin.inc
New template submit.

File

./flag_lists.module, line 793
The Flag Lists module.

Code

function flag_lists_flag_default_flags($name = 'fl_template') {
  return array(
    array(
      'api_version' => 2,
      'name' => $name,
      'module' => 'flag_lists',
      'content_type' => 'node',
      'global' => 0,
      'show_on_page' => 0,
      'show_on_teaser' => 0,
      'show_on_form' => 0,
      // The following UI labels aren't wrapped in t() because they are written
      // to the DB in English. They are passed to t() later, thus allowing for
      // multilingual sites.
      'title' => 'Flag lists template',
      'flag_short' => 'Add to your [flag-lists-title] [flag-lists-term]',
      'flag_long' => 'Add this post to your [flag-lists-title] [flag-lists-term]',
      'flag_message' => 'This post has been added to your [flag-lists-title] [flag-lists-term]',
      'unflag_short' => 'Remove this from your [flag-lists-title] [flag-lists-term]',
      'unflag_long' => 'Remove this post from your [flag-lists-title] [flag-lists-term]',
      'unflag_message' => 'This post has been removed from your [flag-lists-title] [flag-lists-term]',
      'types' => array(),
      'link_type' => 'toggle',
    ),
  );
}