Saturday, June 2, 2012

Examples of functions theme_table () and theme_fieldset () in Drupal 7


In Drupal 7 API is a whole section dedicated to theming the site. All elements of the Site, without exception, must undergo a process of theming. But first you must configure itself theming. When viewed from the side of programming, almost everything is done using the functions. The most basic function of theme (). There are many features that simplify the theming Drupal 7. We consider only the two of them, these functions are:.



  • theme_table () - function to create tables.


  • theme_fieldset () - function for the drop-down list.


Our job:.




  1. Make a table of static data size 3/3 with theme_table ().


  2. Arrange all the articles conclude with a site such fields as: the name of the article ( active link ) and a link to edit articles. Make a similar table, but there should be a close link to the removal of articles.


  3. Print the two drop-down list with theme_fieldset (). Where an explanation of the list displayed to the table of node editing, 2 displays a list of information about the removal of the node table.


  4. Make 2 more drop-down list, which should be in our tables.



Next Article off site located at the company where I rabatayu.







http://internetdevels. ru/blog/theme_table-i-theme_fieldset-v-drupal-7-api.

No comments:

Post a Comment