You are here

function theme_flag_lists_ops in Flag Lists 7

Same name and namespace in other branches
  1. 6 flag_lists.module \theme_flag_lists_ops()
  2. 7.3 flag_lists.module \theme_flag_lists_ops()

Theme function to return edit, delete links.

Parameters

$flag: The flag whose links are being built.

3 theme calls to theme_flag_lists_ops()
theme_flag_lists_admin_page in ./flag_lists.admin.inc
Theme the output for the main flag administration page.
theme_flag_lists_list in ./flag_lists.module
theme_flag_lists_user_page in ./flag_lists.module
Theme the output for a user flag administration page.

File

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

Code

function theme_flag_lists_ops($variables) {
  $flag = $variables['flag'];
  $links = array(
    'flags_edit' => array(
      'title' => t('edit'),
      'href' => 'flags/lists/edit/' . $flag->name,
      'query' => drupal_get_destination(),
    ),
    'flags_delete' => array(
      'title' => t('delete'),
      'href' => 'flags/lists/delete/' . $flag->name,
      'query' => drupal_get_destination(),
    ),
  );
  return theme('links', array(
    'links' => $links,
    'attributes' => array(
      'class' => 'flag_lists_ops',
    ),
  ));
}