function image_style_add_form_name_exists
Check if the proposed machine name is already taken.
Parameters
string $name: An image style machine name.
Return value
bool TRUE if the image style machine name already exists, FALSE otherwise.
1 string reference to 'image_style_add_form_name_exists'
- image_style_add_form in modules/
image/ image.admin.inc - Form builder; Form for adding a new image style.
File
-
modules/
image/ image.admin.inc, line 279
Code
function image_style_add_form_name_exists($name) {
return (bool) image_style_load($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.