custom module error after update

I have a custom module in a website that works fine with v7.4. But once updating to v.7.10 the menu links that are built by this module are deleted from the database. Thus getting a 'page not found error' (typical page example.com/a/main).

Accordion/Collasable Div Content

Is there a module available or is it possible with code per node to have an accordion style content section that an admin user can free type into it?

I know you can have different content types appearing in accordion style content but is it possible to free type into one?

Using modal dialog box to display webform

Is it possible to display a webfom in a modal dialog box?

Link entire view row to node

Hey Guys,

I'm having a little trouble with this one. I'm theming a view at the fields level(views--fields-foo.tpl.php). I have it setup something like this(the anchor is styled as a block, and everything inside links)


<a  class="anchorBlock" href="LINKTONODE">

<div class="randomfield"><?php print $fields['foo']->content; ?></div>
<div class="randomfield"><?php print $fields['foo']->content; ?></div>
<div class="randomfield"><?php print $fields['foo']->content; ?></div>

</a>

The problem is that I can't figure out how to write the anchor. I was hoping to pull the url from the "view_node" field that is packaged with views, but I can't figure out how to override it so I only get the anchor from it, meaning:

When I use the code

<div class="randomfield"><?php print $fields['view_node']->content; ?></div>

It renders something like this

<a href="http://www.site.com/node/123">Link</a>

and all I want is

http://www.site.com/node/123

Has anyone done this before and have some advice? I'm really stumped. I've thought about just making field in the content type where I manually add the url and print that in the view, but that is so sloppy and rather embarrassing. Thanks a million.

Edit:

"basic page" disapeared from "add content" admin page.

Hello,

I have a strange problem here.
When connected as admin, if I go to the "add content" page, I can choose any of the content types I created BUT the regular basic page. I simply doesn't appear anymore.

Roles and permissions seem to be correct, and I CAN add a basic page when going to node/add/page. (So I just added a menu link for now)

It just won't appear on the "add content" page as a choice.

Just weird.

I upgraded from 7.9 to 7.10, but no luck.

Did this happened to anyone else ? Any idea ?

how to compare both node id's

I create one content type (i.e. example). content type have two fields (sample, test ). Both the fields are node reference field. create some contents.
Get values in "views_get_view_result($name, $display_id = NULL)" and displaying table format.Inside table values are 'select list'. select table values and save the content.
once the content will be added in "one value" next time content will not added in "same value".
how to avoid repeat content in same value and how to compare previous nid and current nid ?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x