function activity_delete_link in Activity 6
Same name and namespace in other branches
- 5.4 activity.module \activity_delete_link()
Check if user has right to delete a single activity record and if so, return a the activity record delete link.
5 calls to activity_delete_link()
- activity_block in ./
activity.module - Implementation of hook_block().
- activity_user in ./
activity.module - Implementation of hook_user().
- ogactivity_block in contrib/
ogactivity/ ogactivity.module - create a block for display
- theme_activity_table in ./
activity.module - Theme function for displaying a table of activities.
- user_relationshipsactivity_block in contrib/
user_relationshipsactivity/ user_relationshipsactivity.module - Implementation of hook_block().
File
- ./
activity.module, line 556 - activity.module
Code
function activity_delete_link($activity) {
global $user;
if (user_access('delete activity') && $user->uid != 0 && $activity['uid'] == $user->uid || user_access('administer activity')) {
return theme('activity_delete_link', $activity);
}
return NULL;
}