Multi Step Form issues

Hi everyone,

I'm a belgian newbie, and i nedd your help.
I'm stuck with my multi step form.

Why - in hook_admin_settings_submit - while i delete instance, also cancel field?

This is code:

function annotate_admin_settings_submit($form, $form_state) {
// Loop through each of the content type checkboxes shown on the form.
foreach ($form_state['values']['annotate_node_types'] as $key => $value) {
// If the check box for a content type is unchecked, look to see whether
// this content type has the annotation field attached to it using the
// field_info_instance function. If it does then we need to remove the
// annotation field as the administrator has unchecked the box.

if (!$value) {
$instance = field_info_instance('node', 'annotation', $key);
if (!empty($instance)) {
field_delete_instance($instance);
watchdog("Annotation", 'Deleted annotation field from content type:
%key', array('%key' => $key));
}
} else {
// If the check box for a content type is checked, look to see whether
// the field is associated with that content type. If not then add the
// annotation field to the content type.
$instance = field_info_instance('node', 'annotation', $key);
if (empty($instance)) {
$instance = array(
'field_name' => 'annotation',
'entity_type' => 'node',
'bundle' => $key,
'label' => t('Annotation'),
'widget_type' => 'text_textarea_with_summary',
'settings' => array('display_summary' => TRUE),
'display' => array(
'default' => array(

Error when translating a node

Hi

I have a fresh installation of Drupal 7 and I installed the beta version of Internationalization module.
When I try to translate a node, when I click on "Add a translation" for the wanted language, I get this error :

Unable to print single field in user-profile.tpl.php

Hi guys,

as the title indicates, I am unable to print single fields in the user-profile.tpl.php. I tried many different things, but nothing happens. The tpl has been recognized, as I am able to see custom text, etc. I can print all fields with a value in it via:

<div class="profile"<?php print $attributes; ?>>
  <?php print render($user_profile); ?>
</div>

But if I try to print a single field nothing happens. I tried:

Views - Start viewing content with the 2. newest entry (and not showing 1. newest content)

HI,

is it possible to create a view (sorted by creation date), that doesn´t show the 1. first newest content and starting instead of this with the second newest content?

Can I do this directly in views? I didn´t find any option for it.

Thanks for any help,
Marc

P.S.: Goblok banget.. already found it.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x