Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Am trying to grok Drupal right now, and I just cannot proceed any further without understanding this. I see a lot of this: $foo->bar , where foo and bar are strings.
I've searched the PHP manual, and it won't return anything for this type of structure, or I'm not good at searching.
I know about the array key=>value pair thing, but I haven't been able to figure this one out.
Can anyone help me by either telling me what it's called so I can search for it in the PHP manual or giving me a link to the page in the manual that explains it??
As you can see the second level of the primary links are taking the same formatting of the first level of the primary links.
How can I make this work ?
This is the code for the primary links in the template.php :
function mytheme_primary($items = array()) {
$url = 'http';
if ($_SERVER['HTTPS']=='on')
$url .= 's';
$url .= '://';
if ($_SERVER['SERVER_PORT']!='80')
$url .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].base_path();
else
$url .= $_SERVER['HTTP_HOST'].base_path();
if ($_SERVER['QUERY_STRING']>' ')
$url .= '?'.$_SERVER['QUERY_STRING'];
I found a modules which can disappear the author information, date post... of all nodes. But those information still appear in the taxonomy. How I can dissappear it? Thanks
Awhile back I did a tiny bit of theming research in drupal.
I struggled with it until I stumbled upon a snippet of php which would display a 'dump' of the structure of each node as it got called by node_load. I was using this as a frame of reference as I themed each bit.
I'm picking it back up and can't for the life of me figure out how I was doing this.
I remember it was a one line bit, something ridiculously simple I just can't recall the command and googling for anything dealing with node in the context of drupal is useless.
I added a customized country select list to my profile page.
Countries are mostly written like 'Germany' or 'United Kingdom', but there are some, like 'Brazil, Federative Republic of', so it can be found under 'B'.
I have entered all countries into the text field, each on a single row. Drupal splits this data on every row AND on every comma.
I want
Burundi, Republic of
Cambodia, Kingdom of
Cameroon, United Republic of
but I get
Burundi
Republic of
Cambodia
Kingdom of
Cameroon
United Republic of
How can I change this behaviour? Yes, I know, but using some other symbols instead of a comma is the last option.