You are here

function theme_activity_delete_link in Activity 6

Same name and namespace in other branches
  1. 5.4 activity.module \theme_activity_delete_link()

Theme function to create a link to delete a single activity record.

1 theme call to theme_activity_delete_link()
activity_delete_link in ./activity.module
Check if user has right to delete a single activity record and if so, return a the activity record delete link.

File

./activity.module, line 1390
activity.module

Code

function theme_activity_delete_link($activity) {
  return l('X', 'activity/delete/' . $activity['aid'], array(
    'attributes' => array(
      'title' => t('Delete this activity record'),
      'class' => 'activity-delete-record',
    ),
    'query' => drupal_get_destination(),
  ));
}