function unique_field_form_alter in Unique field 5
Same name and namespace in other branches
- 8.2 unique_field.module \unique_field_form_alter()
- 8 unique_field.module \unique_field_form_alter()
- 6 unique_field.module \unique_field_form_alter()
- 7 unique_field.module \unique_field_form_alter()
Implementation of hook_form_alter().
File
- ./
unique_field.module, line 45 - Provides content validation requirement that the node's title, author, or specified CCK fields are unique.
Code
function unique_field_form_alter($form_id, &$form) {
if ($form_id == 'node_type_form' && user_access(UNIQUE_FIELD_PERM) && isset($form['#node_type'])) {
unique_field_node_settings_form($form);
}
}