function skinr_context_ui_group_name_exists in Skinr 7.2
Same name and namespace in other branches
- 8.2 skinr_context/skinr_context_ui.module \skinr_context_ui_group_name_exists()
Callback to determine if GID already exists.
See also
skinr_context_ui_form_alter()
skinr_context_ui_group_add_form().
2 string references to 'skinr_context_ui_group_name_exists'
- skinr_context_ui_form_skinr_ui_form_alter in skinr_context/
skinr_context_ui.module - Implements hook_form_alter().
- skinr_context_ui_group_add_form in skinr_context/
skinr_context_ui.edit.inc
File
- skinr_context/
skinr_context_ui.module, line 179 - Administrative interface for Skinr Context. Without this module, you cannot edit your skins with context.
Code
function skinr_context_ui_group_name_exists($value, $element, $form_state) {
return db_query_range('SELECT 1 FROM {skinr_groups} WHERE gid = :gid', 0, 1, array(
':gid' => $element['#field_prefix'] . $value,
))
->fetchField();
}