Tagged Questions

Drupal and all its modules and themes are written in the PHP programming language, which is executed by the web server. Questions relating to PHP are generally focused on programming, best practice and help with error messages. Many people will also encounter PHP errors when code on their website ...

learn more… | top users | synonyms

0
votes
1answer
18 views

How to use php in Rewrite results for a field in a view?

I a view I configured a file to "Rewrite the output of this field", Now in the text area I need to use php. Can this be done? Please take look at the capture.
0
votes
0answers
16 views

drupal and enum?

New to Drupal; coming from custom website//database background. Can someone tell me how Drupal handles ENUM values? I have a multivariable array issue- each item in a list of items all have their own ...
0
votes
1answer
32 views

Access custom theme settings from within views

I have a few custom theme settings which so on my themes settings page.. this all works fine and as expected. I now need to create a view that gets that custom theme setting. I can't find anything on ...
0
votes
1answer
12 views

PHP drupal added css file does not appear in page source

I have enabled LessCSS on my site and I have a node instance where I want to add a specific CSS. I used the following piece of code: <?php drupal_add_css( '/sites/MyStuff/introduction.css'); ...
0
votes
1answer
15 views

Get field names of view from within module

After using views_get_view($view_name) how do I get the names of the fields? The list of field names (arranged correctly) is going to be pushed onto an array following which will be all the results. ...
1
vote
1answer
28 views

How to get php error logging working properly in a production site

OK, I'm clearly missing something about how error logging is supposed to work. This is a D7 production site, so my goal is to get errors written into a log file, but not show up on the screen. I've ...
0
votes
2answers
18 views

Undefined offset, CCK field

I've been getting the following php notice: Notice: Undefined offset: 9 in include() (line 89 of node--name.tpl.php). Here's the code: <?php // loops through array to print out addendum pdf's. ...
1
vote
2answers
63 views

How to edit a custom region from an Omega subtheme in Drupal 7

I created a new region in my Omega subtheme called MYTHEME-MENU. I want this region to do the same thing as the normal menu region, but with adding some markup. What is the proper way of doing this (I ...
0
votes
1answer
36 views

Unknown error: Function eregi_replace()

i am using pressflow 6.25 there is a flie views-view-field--events--block--field-date-value.tpl.php in template theme directory in line 5 $create_date = explode(' ...
3
votes
1answer
39 views

Where to place PHP code for a node if not in the node body block itself?

Up until now, I have found it most convenient and easy to place PHP code into my node by placing it in the node body and enabling the PHP filter. However, I have been informed that this is incorrect ...
1
vote
0answers
16 views

How to add fields in Drupal Registration Form?

I have installed content profile module. I just want some fields in drupal sign up page. I am using Drupal 6. How can I achieve this?
1
vote
0answers
49 views

Drupal modules not showing in admin/modules list

I have issues on Module listing in Production server. When I add new modules in production website, it doesn't shown up the modules list. So I took a copy and changed the MySql values on settings.php ...
1
vote
2answers
38 views

How to render a poll within a node?

I'm trying to embed a poll into the body of a node with PHP code: $node = node_load(123); print node_view($node, 'full'); That won't work. What's the trick?
1
vote
1answer
63 views

How to use $contexts in Page Manager

Im trying to make a selection rule for variants in Page manger and it includes some data comparison so it has to be in php. My field data is inside the context, so the $contexts variable can be used, ...
2
votes
1answer
35 views

how to inspect the output array from PHPVideoToolkit::getFFmpegInfo()

I got the following error message PHPVideoToolkit Error: Execute error. Output for file "$DOCROOT/sites/example.com/files/private/videos/original/file.flv" was not found. Please check server write ...

1 2 3 4 5 6
15 30 50 per page