By voipfc on
I want to modify the primary and secondary links sections in Xtemplate so the 'edit primary links' and 'edit secondary links' do not show up unless the user is an administator.
I believe this requires PHP and a snippet of code to determine if the current user is an admin.
Does anyone have some code which can do that check?
I suppose I have to check first whether PHP code can be used in that section?
Comments
function has_role($role =