could someone tell me the meaning of this code:

<?php
function search_theme() {
  return array(
   
'search_theme_form' => array(
     
'arguments' => array('form' => NULL),
     
'template' => 'search-theme-form',
    ),
   
'search_block_form' => array(
     
'arguments' => array('form' => NULL),
     
'template' => 'search-block-form',
    ),
    ...
  );
}
?>

thanks

Comments

Bagz’s picture

This code is an implementation of hook_theme, in this case for the search module.

See http://api.drupal.org/api/drupal/modules!system!system.api.php/function/hook_theme/7 for an explanation of how it is used.