Skip to main content

Timeline for form in a .tpl.php file

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Jan 29, 2016 at 10:15 comment added Pamela Whittaker function studiga_theme_preprocess_add_property_form(&$variables) { $form = $variables['form']; $form['first_name'] = array( '#type' => 'textfield', '#attributes' => array('placeholder' => t('First name')), ); } and <?php print render($form['first_name']); ?> in the tpl.php but no input field shows up
Jan 28, 2016 at 19:05 comment added avpaderno I know. As I said, that would be a problem only in a case. That is not the reason of the issue the OP is having, though.
Jan 28, 2016 at 18:20 comment added Pamela Whittaker The name of the theme is studiga_theme
Jan 28, 2016 at 17:47 comment added avpaderno The short name of the theme is not a problem, if the theme doesn't define a studiga_theme() function, and there isn't a studiga module. Otherwise, studiga_theme() would be understood from Drupal as hook_theme() implementation of the studiga module.
Jan 28, 2016 at 17:42 history answered Nabajit Roy CC BY-SA 3.0