function iframe_get_mymodule_fields in Iframe 7
Helper: Returns all fields created on the system of the type defined in mymodule.
1 call to iframe_get_mymodule_fields()
- iframe_addorchange_column in ./
iframe.install - Helper: add or change one column
File
- ./
iframe.install, line 80 - Install, update and uninstall functions for the text module.
Code
function iframe_get_mymodule_fields() {
module_load_include('module', 'iframe', 'iframe');
$types = array_keys(iframe_field_info());
// field types defined in mymodule
$fields = array();
foreach (field_info_fields() as $field) {
if (in_array($field['type'], $types)) {
$fields[] = $field;
}
}
return $fields;
}