Получить список полей определенного типа материала Drupal6


$type = 'mytype';
$fields = content_fields();

$type_fields = array();
foreach ($fields as $field_name => $field_data)
{
if ($field_data['type_name'] == $type)
{
$type_fields[$field_name] = $field_data;
}
}

Категория: 
The code has been tested and works

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.