It's impossible to override this function.
Why? Look at the functions name. It confusses drupal thinking its an implementation of hook_theme(). So any override in template.php using phptemplate_tiny_mce() or theme_name_tinymce_theme() wont work.
You need to patch the module.
If you want to add a text area that doesnt need tinymce just add an other rule shown by the id of 'my-textarea'. <?php?>
locale language files dont get rebuild and they keep generating page not found errors.
Here is a fix to rebuild the lost translation files.
a little module for D6 which
Provides locale admin pages with buttons to rebuild/invalidate js translations.
- enable the module
- navigate to admin/settings/language#js-translations
- expand "JavaScript translations" fieldset
- use either "Invalidate js translations" or "Rebuild js translations" buttons
The vocabulary edit form hardcodes the value of the 'hierarchy' flag to '0', therefore resetting it when the form is submitted and the vocabulary saved. (from drupal.org)
You also need to resave your vocabularies.
You will probably have discovered this bug while working met facetted search.
What should you do?
Change in taxonomy.admin.inc line 172 from
Problem: You want to know the next id for the nodes. According to drupal you should use db_last_insert('table', 'field'). It returned allways zero for me. In essence the drupal function will execute SELECT LAST_INSERT_ID() in mysql. Even when I executed this directly in phpmyadmin is still returned 0 while my nid count was 20.
If you are looking to exlude feedapi nodes or webform nodes or maybe even node-types you ve created yourself using cck from your search results because they are not relevant.
Use this function if you want to pass extra variables to a tpl.php file.
Forexample :
You want to pass a variable to page.tpl.php. Put in template.php this function.
function phptemplate_preprocess_page(&$variables) {
$variables['my_var'] = '<span>this is my var</span>';
}
In your page.tpl.php $my_var will be available.
If you call it without page in the function $my_var will be available in every theme function that is being called.
function phptemplate_preprocess(&$variables) {
$variables['my_var'] = '<span>this is my var</span>';
}
From drupal.org :
If the site is experiencing problems with permissions to content, you may have to rebuild the permissions cache. Possible causes for permission problems are disabling modules or configuration changes to permissions. Rebuilding will remove all privileges to posts, and replace them with permissions based on the current modules and settings.
Rebuilding may take some time if there is a lot of content or complex permission settings. After rebuilding has completed posts will automatically use the new permissions.
Use the old drupal_set_title('') function to set the title and put it in hook_form_alter. Why in a hook_form_alter? If you do it in preprocess page your 're to late, if you want it to do with drupal_set_title(). But what you can do in the preprocess page is set $vars['title'] (thanks to Davy aka the drupalcoder to point this out). Using hook form_alter has the advantage that it's indepent of the theme.
Example:
function your_module_form_alter(&$form, $form_state, $form_id) {
The blog contains tips for using the Drupal content management system/framework.
Dominique De Cooman is a drupal developer consultant working in Antwerp and Living in Gent. Feel free to contact me to hire me for your projects