function taxonomy_image_user in Taxonomy Image 5
Same name and namespace in other branches
- 6 taxonomy_image.module \taxonomy_image_user()
Implementation of hook_user().
File
- ./
taxonomy_image.module, line 390 - taxonomy_image.module Simple module for providing an association between taxonomy terms and images. Written by Jeremy Andrews <jeremy@kerneltrap.org>, May 2004.
Code
function taxonomy_image_user($type, $edit, $user, $category = 'account') {
switch ($type) {
case 'form':
if (user_access('can disable taxonomy images') && $category == 'account') {
$form['content_images'] = array(
'#type' => 'fieldset',
'#title' => t('Content images'),
);
$form['content_images']['taxonomy_image_disable_images'] = array(
'#type' => 'checkbox',
'#title' => t('Disable images'),
'#return_value' => 1,
'#default_value' => !empty($user->taxonomy_image_disable_images),
'#description' => variable_get('taxonomy_image_disable', t('Check this box to disable the display of content images.')),
);
return $form;
}
break;
}
}