You are here

function autocomplete_widgets_access in Autocomplete Widgets for Text and Number Fields 6

Check access to the menu callback of the autocomplete widget.

1 string reference to 'autocomplete_widgets_access'
autocomplete_widgets_menu in ./autocomplete_widgets.module
Implementation of hook_menu().

File

./autocomplete_widgets.module, line 195
Provides autocomplete widgets for CCK Text and Number fields.

Code

function autocomplete_widgets_access($type_name, $field_name) {
  return user_access('access content') && ($field = content_fields($field_name, $type_name)) && content_access('view', $field) && content_access('edit', $field);
}