drupal-modules

Drupal 6 module install file not creating tables in database

有些话、适合烂在心里 提交于 2019-12-04 09:09:47
I'm using the Schema API to create tables for my module on Drupa 6.17, but the tables just do not get created in the database. I have the Schema module installed, and it tells me that while the schema for my module is recognized, its table is not in the database. It comes up under Missing: Tables in the schema that are not present in the database. test * test_table Here are the contents for my test.install file. <?php // $Id$ function test_schema() { $schema['test_table'] = array( 'description' => t('Test table'), 'fields' => array( 'nid' => array( 'description' => t('test field'), 'type' =>

ckeditor strips <span> and style attributes

淺唱寂寞╮ 提交于 2019-12-04 08:12:43
I have a Drupal 7 site using ckeditor 4.2. I've created a basic page node and put a span inside an h2 heading in the body. I hard coded it in the html view. It looks fine but if I go back to edit the page, my has gotten stipped out of the html and also any style="" I've put into the html also. I've looked at the ckeditor config and text-formats. I've set the only formats allowed to be text and full html so I'm not using filtered at all. What gives? I've used the editor many times before but probably not this version. If you are using the CKeditor module then there is an option in Advanced

How to change footer Powered by Drupal and its link?

Deadly 提交于 2019-12-03 23:15:15
I am working on Drupal. I want to know how to change that footer text Powered by Drupal and link given to it. I want there "Copyrights 2012 (My site name).All Rights reserved." I can not getting it can any one help me. Just go to Structure -> blocks -> Add block Leave block title blank block description Custom Footer or any other if you want and in Block body add following code Copyrights © <a href="http://localhost/drupal-7.12/">TopTableToastMaster</a>.All right reserved. After doing this set default footer's region as none and add your custom footer. Hope this will solve your problem. Just

theme_table drupal development

拜拜、爱过 提交于 2019-12-02 13:25:37
update I have made this table: I have 2 array's UGentArray and InternshipsArray. How can I set these in my table? instead of "Row column 1 data" and "Row column 2 data". My question is: I want the values from UgentArray and InternshipArray as 2 columns under Each title UGentID and Internships enter code here// Make table and display on screen. $tbl_header = array(); $tbl_header[] = array("data" => "UGentID"); $tbl_header[] = array("data" => "Internships"); $tbl_row = array(); foreach($studentUGentID as $key => $value) { for($i = 0; $i<count($value); $i++) { $tbl_row[] = $value[$i]['value']; }

Drupal 7 Browser specific css

瘦欲@ 提交于 2019-11-30 16:11:44
How can i have a browser specific css in Drupal 7 . I would like to load chrome.css if browser is chrome . Please help You can do this in your template.php file with a preprocess_html theme hook and drupal_add_css function. You will find example in drupal 7 theme, for example in bartik : // Add conditional stylesheets for IE drupal_add_css(path_to_theme() . '/css/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 7', '!IE' => FALSE), 'preprocess' => FALSE)); drupal_add_css(path_to_theme() . '/css/ie6.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'IE 6', '

What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

不羁岁月 提交于 2019-11-30 10:10:51
I am currently working on a Drupal 6 theme, for which designer is explicitly requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways of creating rounded corners. Optimally, I would like to write my CSS as standards-compliant CSS3, with selectors like: h2 {border-radius: 8px;} Use of browser-specific is CSS is very OK also, like h2 {-moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px;} If required, I can also insert some custom JavaScript by hand. I just want

Can you Create your Own Hook in Drupal?

拥有回忆 提交于 2019-11-29 21:02:52
Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything's been a no so far, where in the core are the list of hooks implemented? As I understand things, Drupal modules work on a event like system called hooks . When you create a new module, you create functions that implement a hook. For example, there's a hook_delete hook. If you implement a function in your module function mymodule_delete($node) { } this function will be called whenever a node is deleted.

Symlink is not working in my local machine

扶醉桌前 提交于 2019-11-29 17:54:17
I'm using Xampp setup in Windows 7 machine. I am trying to configure sub-folder module in Drupal 7. But it says "Cannot create symlink, error code(1314)" error which stops me in configuring the module properly. And subfolder module functionality is not working as expected. Chris Nauroth This is a Windows error message indicating that the current user does not have permission to create symbolic links. By default, this privilege is granted to administrators only. Your options for fixing this are either to run as administrator (which of course is risky for normal day-to-day use) or explicitly

Drupal Views: Display recent nodes created by user on profile page

China☆狼群 提交于 2019-11-28 18:54:29
I'm wondering how I can display the recently created nodes by a user on their profile page. I've created a new page for a user at /user/%user and I want to be able to display the latest nodes created by that user. ok, the answer involves creating a drupal view, so you will need the views module and although simple, the answer is lengthy. please bear with me through this... :) (i am actually doing this on a test site as i write the instructions, to make sure i dont miss anything...) i assume that you know how to download and install the views module. make sure you also enable the views-ui

Can you Create your Own Hook in Drupal?

偶尔善良 提交于 2019-11-28 16:44:18
问题 Is it possible to create your own hook in a Drupal module for other Drupal modules to consume? If not, is there a mechanism in Drupal for third party developers to provide hooks? If everything's been a no so far, where in the core are the list of hooks implemented? As I understand things, Drupal modules work on a event like system called hooks. When you create a new module, you create functions that implement a hook. For example, there's a hook_delete hook. If you implement a function in your