function soundcloudfield_get_content_node_field_instance_by_field_name in SoundCloud field 6
Get the field instance by field name.
Get field data from database.
Parameters
string $field_name:
Return value
array with a row of content_node_field_instance table
2 calls to soundcloudfield_get_content_node_field_instance_by_field_name()
- theme_soundcloudfield_formatter_default in ./
soundcloudfield.module - Theme function for 'default' field formatter.
- theme_soundcloudfield_formatter_html5 in ./
soundcloudfield.module - Theme function for 'html5' field formatter.
File
- ./
soundcloudfield.module, line 484 - SoundCloud CCK field.
Code
function soundcloudfield_get_content_node_field_instance_by_field_name($field_name) {
return db_fetch_array(db_query("SELECT * FROM {content_node_field_instance} WHERE field_name = '%s'", $field_name));
}