Commit 273a9f04 authored by aaronwinborn's avatar aaronwinborn

* Use file_get_field_list() to get a listing of node type's filefields (aaron).

parent c16a4b35
......@@ -2,6 +2,7 @@
September 2009
-----------
* Use file_get_field_list() to get a listing of node type's filefields (aaron).
* $type is an object (aaron).
* Move menu settings to media config (aaron).
* Begin to fix content type settings page (aaron).
......
......@@ -468,10 +468,12 @@ function media_active_fields_for_node_type($type_name, $function = 'resource') {
$type_override = variable_get('media_'. $type_name .'_override', FALSE);
$items = array();
$type = _media_content_field_types($type_name);
// $type = _media_content_field_types($type_name);
$fields = file_get_field_list($type_name);
// Extract the fields for this node type.
foreach ((array)$type->fields as $field_name => $field) {
foreach ($fields as $field_name => $field) {
// Ignore the content-type specific per-field setting unless the override is set
$fields_enabled = FALSE;
......@@ -530,6 +532,7 @@ function media_create_id($drawer_name) {
/**
* Get a list of content field types.
* @TODO: not necessary?
*
* @param string $type_name
* A string representing the content type.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment